Best practices around "Page_PreRender" and "Page_Load" events
- From: "Max2006" <alanalan1@xxxxxxxxxxxxxxxx>
- Date: Mon, 23 Jul 2007 12:26:09 -0400
Hi,
Are there any best practices or recommendations around using
"Page_PreRender" vs "Page_Load"? We are thinking to completely switch to
Page_PreRender event to handle page's controls initialization requirements.
I went through some asp.net page life cycle documentations (and diagrams)
and it seems that we can safely move all Page_Load codes to Page_PreRender.
Is there any work that we can only do in Page_Load and cannot do it in
Page_PreRender?
A link to an online article would greatly help.
Thank you,
Max
.
- Follow-Ups:
- Re: Best practices around "Page_PreRender" and "Page_Load" events
- From: ThunderMusic
- RE: Best practices around "Page_PreRender" and "Page_Load" events
- From: Walter Wang [MSFT]
- RE: Best practices around "Page_PreRender" and "Page_Load" events
- From: Walter Wang [MSFT]
- Re: Best practices around "Page_PreRender" and "Page_Load" events
- From: bruce barker
- Re: Best practices around "Page_PreRender" and "Page_Load" events
- Prev by Date: Re: Setting the timeout for a specific page.
- Next by Date: Re: Word doesn't create document
- Previous by thread: self inflicted
- Next by thread: Re: Best practices around "Page_PreRender" and "Page_Load" events
- Index(es):
Relevant Pages
|