ScriptManager.RegisterStartupScript(this, this.GetType(), "Messagebox", "alert('Record Deleted successfully.Note: This tab is now getting close');", true);
ScriptManager.RegisterStartupScript(this, this.GetType(), "Messagebox", "window.close();", true);
this.GetType
GetType
ScriptManager.RegisterStartupScript(this,GetType(),"showalert","alert('Only alert Message');",true);
function closeIt(){ return "Any string value here forces a dialog box to \n" + "appear before closing the window.";}window.onbeforeunload = closeIt;
<script language="JavaScript" type="text/javascript"> window.onbeforeunload = confirmExit; function confirmExit() { return "Are you sure you want to exit this page?"; } </script>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)