Postback in asp.net
Hello friends it may sound awkward but i am novice to asp dotnet web development realm, so my question is genuine. Please explain me about what is postback in asp.net. I want it's practical meaning and how does it work in the page life cycle while i dp understand ispostBack and i use it as well.
But i am not getting good meaning o开发者_JS百科f post back please explain it to me with good example.
The wikipedia page on Postback
has the answers:
In the context of ASP web development, a postback is another name for HTTP POST. In an interactive webpage, the contents of a form are sent to the server for processing some information. Afterwards, the server sends a new page back to the browser.
This is done to verify passwords for logging in, process an on-line order form, or other such tasks that a client computer cannot do on its own. This is not to be confused with refresh or back actions taken by the buttons on the browser.
For more detail on the page life cycle, see MSDN, there is quite a lot of detail here.
Check this out:
http://www.codersource.net/asp-net/asp-net-articles/working-with-post-back-in-asp-net.aspx
Check out the introductory videos on http://www.asp.net/web-forms especially the one titled Page Lifecycle Events
A postback is when a web page post a form back to the same URL.
Historically, a web form would post to the next page, so a search form for example would post to the results page, not back to the search form.
The ASP.NET web forms rely heavily on postbacks to create an environment that is close to how a windows form application works. By posting back to the same page, it can have server events that seem to react to actions in the browser. Clicking a button will cause a postback, and the browser will load the same page again, with only the changes that the button click event caused.
精彩评论