C
Colin Basterfield
Hi,
Hmmm, a strange one for me, but hopefully not for others...
I have a base page which has
virtual protected void PageLoadEvent(object sender, System.EventArgs e){}
In the Page_Load method I call this
PageLoadEvent(sender, e);
In all the forms that inherit from it I have a protected override of
PageLoadEvent method which does the necessary for that particular form,
nothing too complex there, what is strange however is that one of the forms
which is a summary page has a datagrid which has hyperlinks in, and if I
click on one of these links it goes to a 'info breakdown page' driven by a
parameter. Although there is no Page_Load method in the 'info breakdown
page' as it is replaced by the PageLoadEvent method, this method gets called
once independently, and then again through the base page Page_Load event
method.
The way I proved this was to put a breakpoint in both the Page_Load event of
the Base Page, and one in the 'info breakdown page' PageLoadEvent method.
So then I click the hyperlink on the summary page, and it immediately stops
in PageLoadEvent on the 'info breakdown page', and then if you F5 it, it
stops in the base page Page_Load method code, which of course calls the
PageLoadEvent of the 'info breakdown page'.
This isn't the case for the other pages, and there only difference is that
the 'info breakdown page' is accessed/initiated by a hyperlink.
Any ideas anyone?
cheers in advance
Colin B
Hmmm, a strange one for me, but hopefully not for others...
I have a base page which has
virtual protected void PageLoadEvent(object sender, System.EventArgs e){}
In the Page_Load method I call this
PageLoadEvent(sender, e);
In all the forms that inherit from it I have a protected override of
PageLoadEvent method which does the necessary for that particular form,
nothing too complex there, what is strange however is that one of the forms
which is a summary page has a datagrid which has hyperlinks in, and if I
click on one of these links it goes to a 'info breakdown page' driven by a
parameter. Although there is no Page_Load method in the 'info breakdown
page' as it is replaced by the PageLoadEvent method, this method gets called
once independently, and then again through the base page Page_Load event
method.
The way I proved this was to put a breakpoint in both the Page_Load event of
the Base Page, and one in the 'info breakdown page' PageLoadEvent method.
So then I click the hyperlink on the summary page, and it immediately stops
in PageLoadEvent on the 'info breakdown page', and then if you F5 it, it
stops in the base page Page_Load method code, which of course calls the
PageLoadEvent of the 'info breakdown page'.
This isn't the case for the other pages, and there only difference is that
the 'info breakdown page' is accessed/initiated by a hyperlink.
Any ideas anyone?
cheers in advance
Colin B