Confirm ok/cancel in Javascript in Asp.net
function askConfirm()
{
if (confirm("Are you sure want to overwrite the file")) {
}
else {
return false;
}
function askConfirm()
{
if (confirm("Are you sure want to overwrite the file")) {
}
else {
return false;
}
Calling js from server side coding in Asp.net
ScriptManager.RegisterStartupScript(this, GetType(), "YourUniqueScriptKey", "askConfirm();", true);
No comments:
Post a Comment
Comments Welcome