Tutorials
Resources
Forum
Interview
Jobs
Projects
Offshore Development
Mentor
|
Code Converter
|
Articles
|
Code Factory
|
Computer Jokes
|
Members
|
Peer Appraisal
|
IT Companies
|
Bookmarks
|
Revenue Sharing
|
Talk to Us
|
My Profile
Sign In
Register
AdSense Revenue
Gifts
Active Members
Today
ANIL PANDEY
(94)
Kundan Kumar ...
(70)
Athira Appukut...
(70)
Last 7 Days
Athira Appukut...
(909)
ANIL PANDEY
(901)
D.Jeya kumar(J...
(815)
more...
Event Life cycle of ASP.NET 2.0
Posted Date: 31 Jul 2007 Resource Type:
Articles
Category:
.NET Framework
Posted By:
Kamal
Member Level:
Gold
Rating:
Points
: 15
The events occur in the following sequence. Its best to turn on tracing(<% @Page Trace=”true”%>) and track the flow of events :
PreInit
– This event represents the entry point of the page life cycle. If you need to change the Master page or theme programmatically, then this would be the event to do so. Dynamic controls are created in this event.
Init
– Each control in the control collection is initialized.
Init Complete*
- Page is initialized and the process is completed.
PreLoad*
- This event is called before the loading of the page is completed.
Load
– This event is raised for the Page and then all child controls. The controls properties and view state can be accessed at this stage. This event indicates that the controls have been fully loaded.
LoadComplete*
- This event signals indicates that the page has been loaded in the memory. It also marks the beginning of the rendering stage.
PreRender
– If you need to make any final updates to the contents of the controls or the page, then use this event. It first fires for the page and then for all the controls.
PreRenderComplete*
- Is called to explicitly state that the PreRender phase is completed.
SaveStateComplete*
- In this event, the current state of the control is completely saved to the ViewState.
Unload
– This event is typically used for closing files and database connections. At times, it is also used for logging some wrap-up tasks.
The events marked with * have been introduced in ASP.NET 2.0.
Responses
Author:
critic
09 Aug 2007
Member Level:
Bronze
Points
: 0
http://www.dotnetcurry.com/ShowArticle.aspx?ID=61
Feedbacks
Popular Tags
What are tags ?
Search Tags
Sign In
(No tags found.)
Post Feedback
This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must
Sign In
to post a response.
Next Resource:
An Exploitation of ADO.NET DataSet: Establishing Relationships among Heterogenous Data Sources
Previous Resource:
New Folders in ASP.NET 2.0
Return to Discussion Resource Index
Post New Resource
Category:
.NET Framework
Post resources and
earn money
!
Related Resources
PageStatePersister class in 2.0 - To persist state on page or Session or even on Database.
How to send a Mail using vb.net
.NET Services - Codename Hailstorm
Handling Application Level Exceptions in Windows and Web Applications
Accessing data using Language Integrated Query (LINQ) in C# 3.0 and later
dotNet Slackers
BizTalk Adaptors
Web Design
Scripts
teleconferencing
Contact Us
Privacy Policy
Terms Of Use