What are all the page level events and when they occur?
1. Page_Init
During Page_Init the server controls are loaded and initialized from the Web form’s view state. This is the first step in a Web form’s life cycle.
2. Page_Load
During Page_Load the server controls are loaded in the Page object. View state information is available at this point, so this is where you put code to change control settings or display text on the page.
3. Page_PreRender
During Page_PreRender the application is about to render the Page object.
4. Page_Unload
During Page_Unload the page is unloaded from memory.
5. Page_Disposed
During Page_Disposed the Page object is released from memory. This is the last event in the life of a Page object.
6. Page_Error
Page_Error event is raised when an unhandled exception occurs.
7. Page_AbortTransaction
Page_AbortTransaction is raised when a transaction is aborted.
8. Page_CommitTransaction
Page_CommitTransaction is raised when a transaction is commited.
9. Page_DataBinding
Page_DataBinding occurs when a server control on the page binds to a data source.
1. Page_Init
During Page_Init the server controls are loaded and initialized from the Web form’s view state. This is the first step in a Web form’s life cycle.
2. Page_Load
During Page_Load the server controls are loaded in the Page object. View state information is available at this point, so this is where you put code to change control settings or display text on the page.
3. Page_PreRender
During Page_PreRender the application is about to render the Page object.
4. Page_Unload
During Page_Unload the page is unloaded from memory.
5. Page_Disposed
During Page_Disposed the Page object is released from memory. This is the last event in the life of a Page object.
6. Page_Error
Page_Error event is raised when an unhandled exception occurs.
7. Page_AbortTransaction
Page_AbortTransaction is raised when a transaction is aborted.
8. Page_CommitTransaction
Page_CommitTransaction is raised when a transaction is commited.
9. Page_DataBinding
Page_DataBinding occurs when a server control on the page binds to a data source.
No comments :
Post a Comment