asp.net - Page.Request behaviour -
i have page , few controls. i'm doing normal postback.
on initializeculture event of page page.request object contains e.g. controls values - , that's great.
but on other hand, when i'm trying access collection on page_load or oninit events, it's way smaller , doesn't have of controls have been there before.
can tell me happens page.request between these events?
edit:
guys, aware of page life cycle term:) , these links indeed helpful. haven't pointed out , but:
- inside override method initializeculture() page.request full of various controls. right after calling base.initializeculture() , page.request has server variables. values of controls here, can't - controls not initialized yet (so calling request.params.get(somecontrol1.uniqueid) throws error)
- overriding preinit, init or page_load doesn't @ all.
so question , when happens page.request between initializeculture() , next events makes smaller?
btw. find http://i.msdn.microsoft.com/dynimg/ic386473.png better illustration of page life cycle.
edit: mistake. doing redirect resetting whole request collection... lame of me. delete post, cannot.
basic page life cycle answer question full article : http://www.codeproject.com/kb/aspnet/aspdotnetpagelifecycle.aspx
Comments
Post a Comment