string script = "alert('Make sure you have updated the page before navigation!')"; ScriptManager.RegisterStartupScript(Page, Page.GetType(), "Alert", script, true);
ScriptManager.RegisterStartupScript(this, typeof(string), "ConfirmMessage", "if(confirm('Make sure you have updated the page before navigation!')){alert('OK');}else{alert('cancel');}",true);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)