----------------------------------------------------------- New Message on MumbaiUserGroup
----------------------------------------------------------- From: Amit_Bansal_ Message 2 in Discussion Hi Krishna Kumar, Page processing and lifecycle is different in ASP, ASP.NET 1.x and ASP.NET 2.0. In case of classic ASP, IIS process the page using the asp.dll ISAPI. In case of ASP.NET 1.x & 2.0, IIS delegates the processing the ASP.NET worker process. To focus more on the .NET processing here which is as follows:- Page request The page request occurs before the page life cycle begins. When the page is requested by a user, ASP.NET determines whether the page needs to be parsed and compiled (therefore beginning the life of a page), or whether a cached version of the page can be sent in response without running the page. Start In the start step, page properties such as Request and Response are set. At this stage, the page also determines whether the request is a postback or a new request and sets the IsPostBack property. Additionally, during the start step, the page's UICulture property is set. Page initialization During page initialization, controls on the page are available and each control's UniqueID property is set. Any themes are also applied to the page. If the current request is a postback, the postback data has not yet been loaded and control property values have not been restored to the values from view state. Load During load, if the current request is a postback, control properties are loaded with information recovered from view state and control state. Validation During validation, the Validate method of all validator controls is called, which sets the IsValid property of individual validator controls and of the page. Postback event handling If the request is a postback, any event handlers are called. Rendering Before rendering, view state is saved for the page and all controls. During the rendering phase, the page calls the Render method for each control, providing a text writer that writes its output to the OutputStream of the page's Response property. Unload Unload is called after the page has been fully rendered, sent to the client, and is ready to be discarded. At this point, page properties such as Response and Request are unloaded and any cleanup is performed. Now, what you have to understand is that there are a series of events fired during a page lifecycle whihc is different in ASP.NET 1.x and ASP.NET 2.0 (ASP.NET 2.0 just has a few more). PLease go through the following links to have a better understanding. http://www.15seconds.com/issue/020102.htm http://msdn2.microsoft.com/en-us/library/ms178472.aspx Regards Amit Bansal [EMAIL PROTECTED] ----------------------------------------------------------- To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings. http://groups.msn.com/MumbaiUserGroup/_emailsettings.msnw Need help? If you've forgotten your password, please go to Passport Member Services. http://groups.msn.com/_passportredir.msnw?ppmprop=help For other questions or feedback, go to our Contact Us page. http://groups.msn.com/contact If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list. mailto:[EMAIL PROTECTED]
