Guest User

Untitled

a guest
Nov 9th, 2016
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. <script>
  2. function PopUp() {
  3. debugger;
  4. alert('TEST');
  5. }
  6. </script>
  7.  
  8. <asp:ScriptManager ID="ScriptManager1" runat="server">
  9. </asp:ScriptManager>
  10.  
  11. //Add the script after <form> tag
  12. bool isClientScriptBlockRegistered = ClientScript.IsClientScriptBlockRegistered("ShowStatus");
  13. if (!isClientScriptBlockRegistered)
  14. {
  15. ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "ShowStatus", "PopUp();", true);
  16. }
Advertisement
Add Comment
Please, Sign In to add comment