P
PinoyDotnet
I am just starting 2.0, so I have this
In ASPNET 1.X there is a method called InitializeComponent() which
clearly wires in the Page_Load method to the Load event, like this:
private void InitializeComponent()
{
this.Load += new System.EventHandler(this.Page_Load);
}
(1)
However, in ASPNET 2.0, you will not see this anymore. How am I suppose
to know the Page_Load is the correct method? Do you know where they
are hiding the code?
(2)
You can put the Page_Load method, and it is guaranteed to be called.
However, I noticed that even if I put the wrong signature such as:
void Page_Load()
It is still called anyway. Why is that?
(Note: Load event has this signature: void Load(object,
System.EventArgs )
ASPNET 2.0 gurus please clarify!
Thanks
In ASPNET 1.X there is a method called InitializeComponent() which
clearly wires in the Page_Load method to the Load event, like this:
private void InitializeComponent()
{
this.Load += new System.EventHandler(this.Page_Load);
}
(1)
However, in ASPNET 2.0, you will not see this anymore. How am I suppose
to know the Page_Load is the correct method? Do you know where they
are hiding the code?
(2)
You can put the Page_Load method, and it is guaranteed to be called.
However, I noticed that even if I put the wrong signature such as:
void Page_Load()
It is still called anyway. Why is that?
(Note: Load event has this signature: void Load(object,
System.EventArgs )
ASPNET 2.0 gurus please clarify!
Thanks