ASP.NET Page Life Cycle

Page_Init -> During this phase, the server creates an

instance of the server control. i.e. various controls are

intialised to default values. but viewstate doesn't exists.

ViewState Load method -> Loads viewstate object.

Load postback Data -> Loads the data posted back incase of

isPostback is true.

Page_Load() -> During this phase, the instance of the

control is loaded onto the page object in which it is

defined

Pre_Render() -> During this phase, the control is updated

with the changes made to it. This prepares the control for

rendering.


Save() -> During this phase, the state information of the

control is saved. For example, if a value is set for the

control during the Load event, it is embedded in the HTML

tag that will be returned to the browser.

SaveViewState()-> Viesstateinformation is saved.

Rendering()-> During this phase, the server creates the

corresponding HTML tag for the control.

Disposing()-> During this phase, all cleanup tasks, such as

closing files and database connections opened by the control

are performed.

Unloading()-> During this phase, all cleanup tasks, such as

destroying the instances of server control are performed.

This is the final event in the life cycle of a server

control.

Comments

Best blog for page life cycle is below one.

http://www.15seconds.com/issue/020102.htm

Popular posts from this blog

Authorize.net Integration eCommerce Payment Gateway ( Direct Post Method New! )

Get Organised with OneNote

Test your Sql Query Online