Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8889561
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T22:17:30+00:00 2026-06-14T22:17:30+00:00

So my question is a little weird, as I did not learn about it

  • 0

So my question is a little weird, as I did not learn about it (ajax approach)

I just reused an original function that I encountered, renamed and tested the function.

So in other different scenario (more common):

A few <asp:TextBox> controls, one submit button.

What is the advantage of Ajax over c# asp.net PostBack?

This is the code

 function AppsName_AjxUpdt(CurrentColumn, recNumSplited, newValue, TBX, ActionRequest, RecordNum) {
        $.ajax({
            type: 'POST',
            url: 'YourPageNameHere.aspx',
            data: {
                'PostSentByAjax': "true",
                'CurrentColumn': CurrentColumn,
                'recNumSplited': recNumSplited,
                'value': newValue,
                'ActionRequest': ActionRequest
            },
            success: function (data) {
                //alert(data);
                if (type == "UpdateUserID") {
                    TBX.setAttribute(defaultValue, newValue);

                    refreshData();
                }
                if (type == "reason") {
                    window.form1.submit();
                }

                if (type == "delete") {
                    document.getElementById("row_" + rowid).style.display = "none";
                    document.getElementById("totalMins").innerHTML = "<span style='text-decoration:underline;color:#A7C942;cursor:pointer;' onclick='refreshData();'>Refresh Results</span>";
                }
            }
        });
    }

So how different is this code-behavior Vs binding an <asp:TextBox> to autopostback feature?
I could just say what I did notes,…the advantage I could see is:

Only if you would like to create a dynamic table with embedded c# code within the tags so you could generate elements id‘s names and values properties, and in the same time you want that control to post back by it’s own event(and since there’s no postback event for html controls), and if you did apply c# codes within the scope of the tag it could not be while using an asp:TextBox only input type “text”.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T22:17:32+00:00Added an answer on June 14, 2026 at 10:17 pm

    The ASP.NET Postback makes the page undergo a full Page lifecycle.
    The Ajax post is asyncronous and does not reload your page. In this sense no specific ASP.NET server events related to the page lifecycle would be fired if you issue your post using an Ajax call. So you would not get Page_Init, Page_Load, Button clicks or anything like that.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Maybe my question it's a little weird, but I'm trying to build a not-so-simple
weird question. I'm trying to extend a little plugin that's in my blog's sidebar.
This is a little weird question, I have a GUI class that in the
The question is a little bit weird, but that's what I need ;) Usually,
hey guys, a little weird question that doesn't actually need to be associated with
My question may seem a little weird but I am sure most of you
Just a little question for you... I'm currently trying to implement a role structure
I have little question about how web browser retrieve webpage? I know this User
I've a little question about decoding special characters from a JSon result (in my
Well!! My question is little weird .. I have created an chat channel which

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.