Advertisement
Guest User

Untitled

a guest
May 25th, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. string ch1 = ResolveClientUrl("GestionEngagement.aspx");
  2.  
  3. string ch2 = @" popup.onunload=function()
  4. {
  5. var test = $.getJSON('../AjaxTraitementOnUnload.aspx', {'IdTraitement' : 1}, function() { });
  6. };";
  7.  
  8. string script = "<script language=JavaScript>var popup = window.open('" + ch1 + "', '', 'width=1034, height=600, resizable=yes, location=no, menubar=no, status=no, scrollbars=yes '); " + ch2 + " </script>";
  9. this.Page.ClientScript.RegisterStartupScript(this.GetType(), "startup", script);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement