Answers
Feb 19, 2007 - 02:01 PM
It is the event before the page is actually displayed on the screen. Or more technical, it happens BEFORE the render method gets called which creates the HTML code using the HtmlWriter. What's intersting is, that the viewstate isn' t updated and stored yet. Viewstate is the state of the webpage. If you need to change/update something which has to go into the viewstate, you should do this in the prerender event handler. If you do this after the render event, it will not be written to the viewstate, since the viewstate gets written just after the render event occurred.
Does this makes sense?
Cheers
Peter
Does this makes sense?
Cheers
Peter
Apr 10, 2009 - 04:51 AM
For every request to .aspx page the ASP.NET work processor
will create a new instance of the corresponding page class
object, once the request is executed the object of page
class is destroyed automatically, the page object life cycle
is controlled by its page life cycle events those are:
1 page_Init
2 page_Load
3 page_Prerender
4 Page_Unload
Page_Prerender: After page executed and before rendering the
output values to the the requested browser this event executes
will create a new instance of the corresponding page class
object, once the request is executed the object of page
class is destroyed automatically, the page object life cycle
is controlled by its page life cycle events those are:
1 page_Init
2 page_Load
3 page_Prerender
4 Page_Unload
Page_Prerender: After page executed and before rendering the
output values to the the requested browser this event executes
Oct 08, 2010 - 03:01 AM
It is the event before the page is actually displayed on the screen. Or more technical, it happens BEFORE the render method gets called which creates the HTML code using the HtmlWriter. What's intersting is, that the viewstate isn' t updated and stored yet.
http://www.neu92.com/
http://www.neu92.com/
Dec 28, 2010 - 08:39 PM
My pc runs very slow, which drives me crazy, my friend recommended me a software tuneup360 several days ago, he said it is a pc cleaner; it seems very useful, but I wonder what’s the function of a pc cleaner?
Add New Comment