SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 47 | Next

Rob Cameron and Dale Michalk

"Pro ASP.NET 3.5 Server Controls and AJAX Components"

Instead, we call
the DataBind() method on the Page_Load handler itself. The DataBind() method of the Page class
recursively calls the DataBind() methods for all its child controls that have references to a data
source. In this case, when the Page class??™s DataBind() method is invoked, the DropDownList
control data binds to the ArrayList object as shown previously.
Control Events
Events are the final constructs used for interacting with controls that we discuss in this chapter.
Events provide a mechanism to notify clients of state changes inside the control. In ASP.NET,
events always coincide with an HTTP POST submission back to the web server. Through the
automatic postback mechanism, events in ASP.NET appear to behave very much like their
counterparts in a Windows Forms application.
?– Note Events provide an object-oriented mechanism for a control to communicate with other controls that
care to know about state changes within that control. If events did not exist, objects would have to resort to
polling to know about state changes in other objects. The asynchronous nature of events provides an elegant
means for communicating between objects. Event handler methods are generally protected to the control
class (the event subscriber), as it would not make sense to call event handlers outside the consuming class.


Pages:
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6