What are the page life cycle events?



What are the page life cycle events?..

Answer / Rahil Saeed

The ASP.NET page life cycle consists of several events that occur as a user interacts with a web application:

1. Request: The HTTP request is received by the server and an instance of the page class is created to handle the request.
2. Start: Initialization and data binding take place during this event, as well as setting up view state and control state.
3. Init: Controls are initialized during this event, and their properties are set to default values if not explicitly set elsewhere.
4. LoadViewState: The view state is loaded for each control on the page.
5. LoadPostData: Any form data submitted by the user is processed during this event.
6. RaisePostBackEvent: If a postback event was triggered (such as clicking a button), it's handled during this event.
7. SaveViewState: The view state for each control on the page is saved before rendering the HTML.
8. Render: The HTML for the page and its controls is generated during this event, which is then sent to the user's browser.
9. Unload: Cleanup tasks such as disposing of objects are performed during this event.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

when using personlization, how do you access over setting at runtime?

1 Answers  


what is webservices. howit is use in our project .

4 Answers   TCS,


Using Statement usage in C#

2 Answers  


What are the Types of authentications in IIS

1 Answers   Microsoft,


How Web Service help? What is the difference between Remoting & Web Servcies?

2 Answers  


What is query string?

1 Answers  


Difference between windows application and web application? Which is the best for updation purpose?

5 Answers   IBS,


State differences between MVC and WebAPI

1 Answers  


Which property is used to identify the Page is Post Back in ASP.NET?

1 Answers   Sans Pareil IT Services,


How do session tokens work?

1 Answers  


What is Assert Method ?

2 Answers  


how to handle sql exceptions?

4 Answers   Marlabs, TCS,


Categories