If confirm box is clicked on ok then I want my code to be executed else
not
something like this
I have a button event That I fire
Button_Event()
{
for(i=0;i
if(i%2)
{
// Javascript Confirm Box that I want to display
If Javascript function value ==true;
Execute Code
//else
continue
}
Javascript Function
{
}
Please help me as soon possible

Abhimanyu K VatsaRank #14 · 51.7K reputationPosted Jun 2, 2010, 3:29 AM EDT
You can execute your C# codes based on JS ConfirmBox. We have the following code for JS
function go_there() { var where_to= confirm("Do you really want to go to this page??"); if (where_to== true) { window.location="http://yourplace.com/yourpage.htm"; //you can call here your C# codes using class name or function name } else { window.location="http://www.barbie.com"; } }I hope my post will help you. Accept my answer if helps you.
Good Luck