-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: MasterGaurav35601
Message 2 in Discussion

> want to run some code. At this time i dont want the control to go inside
> Page_Load instead it should check the which button is clicked first. How to
> achive this ? 

Not possible.
Before Page_Load, the controls are not guaranteed to be initialized.
Only when you land in Page_Load can you say that all controls have
been initialized.

Look at the lifecycle of the controls and you'll get the clue as to
why this is not possible.

1. Initialize
2. Load view state
3. Process Postback data (IPostBackDataHandler::LoadPostData)
4. Load
5. Send post back change notifications
(IPostBackDataHandler::RaisePostDataChangedEvent)
6. Handle Postback events (IPostBackEventHandler::RaisePostBackEvent)
..




-- 
Cheers,
Gaurav Vaish
http://www.mastergaurav.org
http://mastergaurav.blogspot.com
--------------------------------


-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member 
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you 
received this message by mistake, please click the "Remove" link below. On the 
pre-addressed e-mail message that opens, simply click "Send". Your e-mail 
address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to