open form in new window

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ravindarjobs
    New Member
    • May 2007
    • 86

    open form in new window

    Hi friends,



    i am handling a very old project developed in .net 2003 version (1.1 framework).

    i submit form with method="post" and

    I pass lots of values from a form to other and read them in next page with

    For Each item As String In Request.Form.Al lKeys

    code goes here

    next



    till now i was using sever.transfer( "url"); and it went fine.



    Now my requirement is to open the form in new window.

    as we cannot open in new window with either server.transfer or response.redire ct, i am in dilemma.



    i got a thought of using java script function window.open() but how do i read all the parameters in next page?



    so please let me know if you know a better approach.



    thank you
  • PRR
    Recognized Expert Contributor
    • Dec 2007
    • 750

    #2
    Try this
    Code:
    protected void Button3_Click(object sender, EventArgs e)
        {
            
            Response.Write("<script>");
            Response.Write("window.open('Default2.aspx','_blank')");
            Response.Write("</script>");
        }

    Comment

    Working...