when we work with asp.net webform and when we click on submit button then postback occur. so i like to know how IsPostBack becomes true when form submit to server.
who does this and how. if anyone knows the full story then please share the info with me. thanks
Saravanan VPosted Jun 29, 2017, 12:06 PM
In general, an asp.net page goes through different page life-cycle stages as part of the page processing. These stages are Page request, Start, Initialization etc.
As per Microsoft, it is in this "Start" stage, the page determines whether the request is a postback or a new request and sets the IsPostBack property.
You can read the below MSDN article for further reference:
Page.RaisePostBackEvent Method notifies the server control that caused the postback that it should handle an incoming postback event.
The Page object calls the RaisePostBackEvent method when a postback occurs. This call occurs in the page life cycle after loading and change notification are complete but before prerendering occurs.
Useful links:
Detailed information about Page object Model
https://msdn.microsoft.com/en-us/library/aa479007.aspx
Processing Postback Data
https://msdn.microsoft.com/en-us/library/aa720471(v=vs.71).aspx
https://msdn.microsoft.com/en-us/library/system.web.ui.ipostbackeventhandler.raisepostbackevent(v=vs.90).aspx
Please mark the answer as accepted if it fulfills your question.
Sakthivel GanesanPosted Jun 29, 2017, 11:49 AM
Posted Jun 29, 2017, 8:30 AM
Sundaram SubramanianPosted Jun 29, 2017, 8:09 AM
Posted Jun 29, 2017, 8:07 AM
Sundaram SubramanianPosted Jun 29, 2017, 7:51 AM