By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,649 Members | 2,142 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,649 IT Pros & Developers. It's quick & easy.

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

P: n/a
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..
Nov 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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
"Grey" <er*****@i-cable.com> wrote in message news:ej**************@TK2MSFTNGP09.phx.gbl...
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..
Nov 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.