how to catch the "YES" or "NO" from the confirm box

  • Thread starter Thread starter Grey
  • Start date Start date
G

Grey

i use "this.Page.RegisterStartupScript()" to display the client-side script of confirmation box ...but I want to know that how can I know the user was clicked "YES" or "NO" as I need to do different action for these two choices.


Million Thanks..
 
Only the client's browser knows what was clicked. So it will have to communicate the response to the server. There is a number of ways of doing this. One of them is to have a hidden input element. Set it's value in a javascript. The element will send the value to the server with the submitted form.

Eliyahu
i use "this.Page.RegisterStartupScript()" to display the client-side script of confirmation box ...but I want to know that how can I know the user was clicked "YES" or "NO" as I need to do different action for these two choices.


Million Thanks..
 
Back
Top