How 2 capture OK or CANCEL at the messagebox using javascript or other method???
-
my code is using javascipt to declare the alert message, bcoz ASP.Net server-side cannot declare example - msgbox('xxx') alert('xxxx') then how can i capture OK or CANCEL from the messagebox, for example:- confrim('xxxx') or using other method 2 declare it! help??? -- modified at 1:51 Tuesday 7th February, 2006
-
my code is using javascipt to declare the alert message, bcoz ASP.Net server-side cannot declare example - msgbox('xxx') alert('xxxx') then how can i capture OK or CANCEL from the messagebox, for example:- confrim('xxxx') or using other method 2 declare it! help??? -- modified at 1:51 Tuesday 7th February, 2006
-
Ya, I know using Confirm, but the code is write as :- respnse.write(confirm(example)) how 2 get the true or false value???
-
btnSubmit.Attributes.Add("onclick","javascript: return confirm();"); add attribute to btnSubmit . In this case first confirm is called then button click sanjeev
-
Thanks 4 help! but its your code is write at c#. where 2 place your code, my code is using :- <%@ Page Language="VB" %> can u write a full set code, let me c??? TQ TQ
-
my code is using javascipt to declare the alert message, bcoz ASP.Net server-side cannot declare example - msgbox('xxx') alert('xxxx') then how can i capture OK or CANCEL from the messagebox, for example:- confrim('xxxx') or using other method 2 declare it! help??? -- modified at 1:51 Tuesday 7th February, 2006
There are two location we can capture ok or cancel a) In javascript itself b) aspx or code behind In case if you want to capture at javascript level then following code help you out if (confirm("Are you sure you want to proceed ?")) // just an example { // put your code here } else { //put your code here } let me know if you are looking at page level or code behind too.
-
my code is using javascipt to declare the alert message, bcoz ASP.Net server-side cannot declare example - msgbox('xxx') alert('xxxx') then how can i capture OK or CANCEL from the messagebox, for example:- confrim('xxxx') or using other method 2 declare it! help??? -- modified at 1:51 Tuesday 7th February, 2006
-
There are two location we can capture ok or cancel a) In javascript itself b) aspx or code behind In case if you want to capture at javascript level then following code help you out if (confirm("Are you sure you want to proceed ?")) // just an example { // put your code here } else { //put your code here } let me know if you are looking at page level or code behind too.