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

New Message on BDOTNET

-----------------------------------------------------------
From: thinkindotnet
Message 1 in Discussion

 
Hi folks, 
I have the following code in my web page 
 override protected void OnLoad(EventArgs e)  {  
  Response.Write("OnLoad");
 } 
 private void Page_Load(object sender, System.EventArgs e)
 {
  Response.Write("Page_Load");
 }
 
 override protected void OnInit(EventArgs e)
 {
  //
  // CODEGEN: This call is required by the ASP.NET Web Form Designer.
  //
  InitializeComponent();
  base.OnInit(e);
 }
 
 private void InitializeComponent()
 {    
  this.Load += new System.EventHandler(this.Page_Load);
 } 
Whenever I run my web page, I am always getting the "OnLoad" written in my web page 
but not the "Page_Load". 
Question is, though I have registered the Page_Load event with this 
  this.Load += new System.EventHandler(this.Page_Load);
the Page_Load is not executing. Why is it so.?. Won't it be able to run the event 
registered with the "this.Load"..!?. 
Thanx,
Suki

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

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