Guest User

Untitled

a guest
Jan 6th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.51 KB | None | 0 0
  1.     public void SendPopUp()
  2.     {
  3.         message = message.Replace("'", "\\'");
  4.         title = title.Replace("'", "\\'");
  5.         string key = Guid.NewGuid().ToString();
  6.         StringBuilder javascript = new StringBuilder();
  7.  
  8.         javascript.Append("initPopupVariables();");
  9.         javascript.Append(" AlertPopUp('" +title +"', '" +message +"', '" + GetPopUpTypeAsString() +"');");
  10.    
  11.  
  12.  
  13.         Page.ClientScript.RegisterStartupScript(page.GetType(), "AlertPopUpInit", javascript, true);
  14.  
  15.     }
  16. }
Add Comment
Please, Sign In to add comment