S
steven.varr
Hi,
The system I am working on handles web page navigation in the following
fashion: When a button is clicked on a web page a post-back is
triggered. The page_load event occurs as usual with the the button
click event occurring afterwards. The button click event then runs the
code to forward the user to the next web page.
My problem is that the page_load event runs a whole load of code that
is unecessary when the button click event is about to forward the user
to another page.
I was hoping that someone could help me with this please? Is there an
event queue, or something similar, that can be examined to see if the
button click event has been raised? If there is, then the page_load
code could simply skip the unecessary code. If there isn't than I
imagine just passing a flag is the best way to skip the code.
Many thanks,
Steve
The system I am working on handles web page navigation in the following
fashion: When a button is clicked on a web page a post-back is
triggered. The page_load event occurs as usual with the the button
click event occurring afterwards. The button click event then runs the
code to forward the user to the next web page.
My problem is that the page_load event runs a whole load of code that
is unecessary when the button click event is about to forward the user
to another page.
I was hoping that someone could help me with this please? Is there an
event queue, or something similar, that can be examined to see if the
button click event has been raised? If there is, then the page_load
code could simply skip the unecessary code. If there isn't than I
imagine just passing a flag is the best way to skip the code.
Many thanks,
Steve