Table 9-4 describes what action the WebDataWindowControl takes at each stage of its life cycle.
Phase |
What happens |
Event or method |
---|---|---|
Initialize |
Initializes settings for the incoming Web request. |
Init event (OnInit method) |
Load view state |
Populates the ViewState property, including settings for LibraryList, DataWindowObject, and other WebDataWindowControl properties. |
LoadViewState method |
Process postback data |
Restores the data cache if AutoRestoreDataCache is true. Restores the context if AutoRestoreContext is true and the control is already loaded. |
LoadPostData method |
Load |
Restores the context if AutoRestoreContext is true and context was not restored in the LoadPostData method. |
Load event (OnLoad method} |
Handle postback events |
Performs client actions. |
RaisePostBackEvent method |
Prerender |
Registers client scripts and button context and actions. |
PreRender event (OnPreRender method) |
Save state |
Saves settings for LibraryList, DataWindowObject, and other WebDataWindowControl properties and saves the client context if necessary. |
SaveViewState method |
Render |
Renders the Web DataWindow. |
Render method |
Dispose |
Disposes of internal DataStore and other objects. |
Dispose event |