How to get OK CANCEL values

  • Thread starter Thread starter Chuck Traywick
  • Start date Start date
C

Chuck Traywick

We have a webform that we would like to wire up with
btn1.attribute("ONCLICK") = "javascript; confirm('Delete
this record?
);"

How do I find out in a server side button which button
the user picked?

Thanks

Chuck
 
I don't think you would. You could determine it client-side (as always) and
then take that value and pass it up to the server (querystring, hidden form
field, etc.)
 
You could have the onClick handler call a method that you create (and not
just confirm), and in this method pop up the confirmation box and store the
value in a local variable. Then, you can stick this variable into a hidden
form field and submit the form.
 
Back
Top