I'm working on a web site that contains a button. Originally, this button had an event handler that performed some processing and then called
, which in turn caused the current page to be replaced with the file being written. This was not the desired behavior, so I added a
element to bring up the other page in a new window. Imagine my dismay to discover that specifying a
causes the page to NOT fire the Click event for the button.
My work around is comprised of two steps:
0) In the page being navigated FROM, move the code out of the event handler into a public method.
1) In the page being navigated TO, add the following line to the
or for VB: