Home > DeveloperSection > Blogs > PostBack in ASP.Net

PostBack in ASP.Net


ASP.Net ASP.Net 
Ratings:
1 Comment(s)
 1763  View(s)
Rate this:

PostBack in ASP.Net

In this blog I am going to trying to explain the concept of PostBack.

PostBack is the name given to the process of submitting an ASP.NET page to the server for processing. PostBack is done if certain credentials of the page are to be checked against some sources (such as verification of username and password using database). This is something that a client machine is not able to accomplish and thus these details have to be 'posted back' to the server.

IsPostBack

This property is automatically set to False whenever a page is called for first time and whenever a server redirect a new instance of a page this property is set to True.

AutoPostBack

This property is by default set to False. So if we perform some action on control such as DropDownList, no events are performed because events are not recognized.


very nice post! short and informative!

By omi omi on   3 years ago
I'm very new to asp.net (about 2 weeks old) and the postBack property wasted a lot of my time...I guess I've Never thought of the fact that it submits the page to the server. Your post highlighted this important fact.
I have a question for you- many properties have an "Inherit" option along with other options (for example- a simple asp:lable property ViewStateMode which can be set to "Inherit" or "Enabled" or "Disabled" ), and I thought until now that this field more or less means:
ViewStateMode="Enabled or Disabled accourding to the ViewStateMode value that physically contains this control"...
I'm way off, right? is this property value Concerns to the server also??
Thanks.
omi


Don't want to miss updates? Please click the below button!

Follow MindStick