PAGE LIFE CYCLE WITH DATA BINDING
• Data Controls on a page perform two key tasks:
I. RETRIEVE: They can retrieve data from a data source and supply it to linked controls
II. UPDATE: They can update the data source when edits take place in linked controls
• Hence a page life cycle with data controls present on the page is following:
1. The page object is created (based on the aspx file)
2. The page life cycle begins, and the Page.Init and Page.Load events fire
3. All other control events fire
4. The data source controls perform any updates. If a row is being updated, the Updating and Updated events fire, same for Insert operations and Deletion
5. The Page.PreRender event fires
6. The Data source controls perform any queries and insert the retrieved data in the linked controls. The Selecting and Selected events fire at this point
7. The page is rendered and disposed
Saturday, August 11, 2007
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment