code_junkie

Execute javascript function after asp.net postback without Ajax

Nov 12th, 2011
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. Page.ClientScript.RegisterStartupScript(GetType(), "ShowPopup", "showCheckOutPopIn('Livraison',556);");
  2.  
  3. ScriptManager.RegisterStartupScript(this, this.GetType(), "ShowPopup", "showCheckOutPopIn('Livraison',556);", true);
  4.  
  5. ScriptManager.RegisterStartupScript(MainUpdatePanel, typeof(string), "ShowPopup", "showCheckOutPopIn('Livraison',556);", true);
  6.  
  7. Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "script", "alert('Success!');", true);
Add Comment
Please, Sign In to add comment