" Live as if you were to die tomorrow. Learn as if you were to live forever.. "
- Mahatma Gandhi
In few cases we need to show Yes/No popup instead of Ok/Cancel confirm dialog box.
You can do it by the following code.
Write the following code in your HTML Page.
execScript('n = msgbox("'+str+'","4132")', "vbscript");
return(n == 6);
Call the function from the onClientClick event of your button
Write the btnOk_Click event in your server side code
protected void btnOk_Click(object sender, EventArgs e)
Now your confirmation dialog will show Yes/No instead of Ok/Cancel. If you click Yes, the control will go to the server side method and if you click No, the server side code will not execute.
Mail (will not be published) (required)
Enter Captcha Code *
nine × 3 =
Burn Ignorance is a knowledge initiative by Mindfire Solutions
Subscribe to our mailing list to get the updates to your email inbox...