October 2010
Intermediate to advanced
1920 pages
73h 55m
English
Only one control in a page at a time can cause a form to be submitted back to the server. When a control initiates a postback, the control can raise a postback event.
To process a postback event, you need to implement the IPostBackEventHandler interface. This interface includes a single method:
• RaisePostBackEvent()—
Called on the server when a control initiates a postback.
The control in Listing 36.18 illustrates how you can implement the IPostBackEventHandler interface.
Listing 36.18. CustomLinkButton.cs


The control ...
Read now
Unlock full access