Life cycle of ASP.NET page when a request is made ?

Answer Posted / sudhir sheoran

1. instantiation: Page class/Page control tree is formed.

2. Initialization:Controls statically declared in aspx
file will be initialized to their default values.
No view state information at this level.

3. Load View State: It contains the state of controls
of a page,when the last time the page was
processed on the server.

4. PostBack Data Porcessing: It loads the poasted
data values.

5. Page load:If the request is postback, the controls are
loaded with the information recovered from view state.

6. Pastback change Notification: If some submit event takes
place then the pageframe work calls raise postback
events.

7. Post back event handling

8. View state saving: All the values in the controls
will be saved to their view states.

9. Render: This method takes HTML Writer object and
use it to accumulate all HTML text to be generated
for a control.
The page calls render method for each control providing
a text writer that writes output to the output stream
object of page response property.

10. Unload: Response is sent back to the client.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of using MVC programming pattern in ASP.NET?

541


How many types of controls are there in asp.net?

516


Why asp.net is used?

549


What is difference in .net 1.1 and .net 2.0?

571


What is http session state?

508






What is the purpose of asp.net?

528


Hello, Using Visual Studio 2005 (VB) I am working to create a Web Site implementing the following: Within a gridView I have placed a dropdownlist control with a DataSourceID="SDSLkupList". SDSLkupList is a sqlDataSource used to store a lookup list for dropdownlist translation from ID to text. SDSLkupList contains the translation text and other fields related to the dropdown selection ID. (Thought it would be efficient to get everything at the same time.) I would like to provide the user the ability to select from the dropdownlist and, based on the selection, use labels to list related columns stored on the SDSLkupList in separate gridView columns. I have read that SqlDataSources are not meant to be used for individual controls. Since SDSLkupList contains all related information, is there a way to do a find using the dropdownlist selectedValue? (I was not able to discover one.) Otherwise, what should I use? It would need to set the labels on the gridView DataRowBound event as well as the SelectedIndexChanged events. Has anyone done this? Any help would be appreciated. Thanks in Advance. Neal

1362


Difference between web user control and web custom control?

495


What is the use of response redirect in asp.net?

566


How to store checkbox value in database in asp.net mvc? : Asp.Net MVC

502


Explain about solution explorer window?

604


Is asp.net free?

544


What are the various session state management options provided by asp.net?

530


What are the new data controls in asp.net 2.0?

510


How to use a Master Database in Asp.net?

552