Postback on Client side:
User actions on webforms cause postback
Postback events cause the browser to send page data i.e. Viewstate to the server
Asp.net 1.1 provided postback to a page itself, 2.0 provides cross page postback
Asp.net provides the javascript_doPostBack() function that records the name of the control that caused the postback
This function also places the event arguments in the hidden form fields called _EVENTTARGET and _EVENTARGUMENT
Postback processing on server side:
Postback data is examined by methods of those controls that implement either the IpostBackDataHandler or IpostBackEventHandler
Postback data is examined to find if a client side event was generated, if so corresponding server side event is raised
Custom PostBack can be created by calling the GetPostBackEventReference method
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment