LoadViewState Unpack ViewState Populates the state values of the
control from ViewState.
LoadControlState Unpack control state Populates the state values of the
control from control state.
LoadPostData Handle form postback Updates control??™s state values
from data posted data.
Load Page_Load event Executes code common to every
page request/response cycle.
TrackViewState Track ViewState Causes IsTrackingViewState
property to return true when
called.
RaisePostDataChangedEvent Initialization for
server-side events
Notifies control that newly
posted data changed its state.
RaisePostBackEvent Execute server-side events Goes hand-in-hand with previous
events listed in this table. Serverside
events fire as a result of
changes found in posted data for
a particular control.
PreRender Render process Allows each control a chance
to update state values before
rendering.
SaveViewState Save ViewState Persists a control??™s updated
state through the ViewState
mechanism.
CHAPTER 5 ?– SERVER CONTROL EVEN TS 239
As Table 5-1 shows, ASP.NET provides each server control the capability to finely tune
each phase in the life cycle. You can choose to accept default behavior, or you can customize a
particular phase by overriding the appropriate event.
Pages:
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342