P
Paul Hodgson
I have quite a few pages that have multiple command buttons on them - for
example one button might be to logout, and others might be to display
different segments of the data being shown. The important point is that
what gets displayed in the page depends on which command button was clicked
in the postback. I'd assumed that I could handle this by sorting out what
action to take in the Click event handlers for the buttons, but that doesn't
work because the event isn't raised until after Page_Load has completed and
the HTML output has presumably already been determined.
So if I can't use the Click event, how do I determine during my Page_Load
code which button has been clicked and therefore what output to display?
Thanks
Paul
example one button might be to logout, and others might be to display
different segments of the data being shown. The important point is that
what gets displayed in the page depends on which command button was clicked
in the postback. I'd assumed that I could handle this by sorting out what
action to take in the Click event handlers for the buttons, but that doesn't
work because the event isn't raised until after Page_Load has completed and
the HTML output has presumably already been determined.
So if I can't use the Click event, how do I determine during my Page_Load
code which button has been clicked and therefore what output to display?
Thanks
Paul