hi every one i need solutin for this code now working in my project
code in aspx page:-
--------------------
code in aspx page:-
--------------------
function show() {
if (confirm('r u sure?')) {
window.location.replace('yourpage.aspx');
}
}
code behind in .cs file:-
----------------
else
{
Page.ClientScript.RegisterStartupScript(this.GetType(), "open", "show();", true);
}


Ramesh MaruthiRank #937 · 2.2K reputationPosted Jul 22, 2014, 8:31 AM EDT
can you try in this way string strconfirm = "if(!window.confirm('Are you sure?')){window.location.href='yourpage.aspx'}"; else { Page.ClientScript.RegisterStartupScript(this.GetType(), "open", "strconfirm", true); }