window.open on load page (asp.net) using Method=POST

Posted by Raul on Stack Overflow See other posts from Stack Overflow or by Raul
Published on 2010-06-08T15:18:08Z Indexed on 2010/06/08 15:22 UTC
Read the original article Hit count: 242

Filed under:
|
|

i need open pop up in asp.net using post Method and window.open to rezise te new windows.

my code:

---- open the pop up ---

function mdpbch(URL) {
    child = window.open(URL, "passwd","dependent=1,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=600,height=475");
    child.location.href = URL;
    if (child.opener == null) {
      child.opener = window;
    }
    child.opener.name = "opener";
  }

-------- URL ---

function PagoEnLinea(Banco)
{ 

    switch(x){
        case "BCH":
            document.frmEnvia.action = SERV + "/llamacom.asp";
             url = SERV + "lamacom.asp
             alert(url);
             mdpbch(url);
             document.frmEnvia.submit();
            break;
    }

}

-------ASPX--------------------

<body>
    <form id="frmEnvia" runat="server" name="formulario" method="post" target="_blank">

    <div style="visibility:hidden;">
        <asp:TextBox ID="txtXml" runat="server" Visible="true"></asp:TextBox>
    </div>
.....

</body>

on page load (code behind) i create a xml string and put it in the textbox txtXml.

i need use post method becose the server validate te method, and window.open becose need customize the pop up

thanks

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about JavaScript