To direct the ASP .Net compiler about the page layout and execution strategy to prepare a page some Page Directives are used as page declaration. ASP.Net compiler follows these directives. Commonly used page directives are:
You can place these directives anywhere in the .aspx page but typically these are placed at the top of page.
When a web page is loaded, reloaded or submitted for postback a sequence of events is followed. Following is the order of execution of events when the page is loaded:
Page_Init event fires only first time the page is loaded. During postback page_init event doesn’t fire where as page_load event fires each time the page loaded or reloaded. Page_load event occurs when all the objects become available for use. After page initialization and loading, system checks for change or action event fired at client side by any event of controls placed on the web page.
Now click here to create your first ASP.Net page
Be the first to rate this post
Tags: asp.net, asp .net page directives, order of page events execution
10/11/2008 3:33:19 AM