R
Rich
Hi everyone,
I have run into a quandry here. Here is a simplified scenario that
mirrors my real problem.
I have a page that has 2 buttons:
On page load, the page runs some complex initialization routines.
Clicking button 1 causes a postback in which I WANT the initialization
routines to run before the event handler. The net of this is that the same
page redisplays slightly differently.
Clicking button 2 causes a postback in which I DO NOT WANT the
initialization performed before the event handler. The net of this is that
I do some processing and move on to another page.
Here is the problem: The page load initialization routines are expensive,
and I really don't want to run these if the user is clicking that second
button. I need to know which event fired before completing the page load.
I really don't want to move where the main initialization routines are
(under page load) if I can help it. Any ideas how to 'peek the events'
prior to the page load?
Thanks,
Rich.
I have run into a quandry here. Here is a simplified scenario that
mirrors my real problem.
I have a page that has 2 buttons:
On page load, the page runs some complex initialization routines.
Clicking button 1 causes a postback in which I WANT the initialization
routines to run before the event handler. The net of this is that the same
page redisplays slightly differently.
Clicking button 2 causes a postback in which I DO NOT WANT the
initialization performed before the event handler. The net of this is that
I do some processing and move on to another page.
Here is the problem: The page load initialization routines are expensive,
and I really don't want to run these if the user is clicking that second
button. I need to know which event fired before completing the page load.
I really don't want to move where the main initialization routines are
(under page load) if I can help it. Any ideas how to 'peek the events'
prior to the page load?
Thanks,
Rich.