
660
|
Chapter 36: The System.Web.UI Namespace
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
Implemented By
Control, System.Web.UI.MobileControls.{DeviceSpecificChoice, Style}, System.Web.UI.
WebControls.ListItem
IPostBackDataHandler
System.Web.UI (system.web.dll)
interface
This interface, which is implemented by many ASP.NET Server Controls, allows a
control to receive and process postback data. It consists of two methods. The first,
LoadPostData( ), allows a control to receive the form data and update its properties as
required. ASP.NET calls this method automatically on postback. It provides form data
as a collection in the postCollection argument and a postDataKey argument identifying the
control’s key (i.e., postCollection(postDataKey) will contain the posted information for the
control). The control returns True from this method to indicate that its state has
changed, or False if it hasn’t. ASP.NET calls the second method, RaisePostDataChangedEvent( ),
automatically after LoadPostData( ) if the control’s state is changed. The control can use
this method to raise any required events. Events should never be raised from the
LoadPostData( ) method because other controls may not have loaded their state informa-
tion yet.
Implemented By
Multiple types
IPostBackEventHandler
System.Web.UI (system.web.dll)
interface
This interface allows a control ...