T
tshad
I am trying to set up a Javascript popup box that has a way of sending back
a message to asp.net on how to process some data.
At the moment I am just doing:
myNextButton.Attributes.Add("onclick", "return confirm('Are you sure you
want finish this test?');")
to attach a popup box to a button. The problem is that the buttons only say
OK and Cancel. OK will take me to the event tied to the button and Cancel,
in effect, says to do nothing and act as if the User never pressed the
button.
What I am trying to do is have something different on the button, such as
Proceed or Go Back and someway to tell asp.net on the postback which button
was pushed.
The problem is that if you press the button, the event that is tied to the
onClick button will fire, and will do any normal processing. I want it to
process based on which buttons were pushed. Is there a way to send a
message to the event telling it what was done?
Thanks,
Tom
a message to asp.net on how to process some data.
At the moment I am just doing:
myNextButton.Attributes.Add("onclick", "return confirm('Are you sure you
want finish this test?');")
to attach a popup box to a button. The problem is that the buttons only say
OK and Cancel. OK will take me to the event tied to the button and Cancel,
in effect, says to do nothing and act as if the User never pressed the
button.
What I am trying to do is have something different on the button, such as
Proceed or Go Back and someway to tell asp.net on the postback which button
was pushed.
The problem is that if you press the button, the event that is tied to the
onClick button will fire, and will do any normal processing. I want it to
process based on which buttons were pushed. Is there a way to send a
message to the event telling it what was done?
Thanks,
Tom