How to open a page in a new window?

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default How to open a page in a new window?

    Hi there,

    With the following statements:
    Server.Transfer("Voorbeeld.aspx");

    Response.Redirect("Voorbeeld.aspx?code="+Label1.Te xt.Trim());

    I can open a page in an existing window. But I would like to open it in a
    new window, like you can do with a hyperlink when you set the Target
    property to _blank. How can I do this?

    Thanks for your help.


    Erik.


    Erik Veldkamp Guest

  2. Similar Questions and Discussions

    1. I want a link on my page to open a new browser window
      I want a link on my page to open a new browser window. In the new window I have a video.flv file, but I dont want all the explorer menus, icons and...
    2. Flash Page goes blank with Javascript:window.open() to HTML pages
      Hello, I just finished a site for my hobby/business of making blues guitar slides. Everything works great except that some browsers seem blank out...
    3. How can I open a new window and ensure the page loaded creates a NEW session?
      Normally if this is done, the new window will be in the SAME session as the opening window. I don't want to abandon the session of the opening...
    4. open page in new window, VBscript + ASP
      Gazing into my crystal ball I observed "Raphael Gluck" <iwish i could tell you @alas blame the spammers> writing in...
    5. make all links on page open in new browser window
      Tom I started using this method from an article at Sitepoint.com a couple of months ago. It's very easy to accomplish and it validates against...
  3. #2

    Default Re: How to open a page in a new window?

    Maybe something like ...
    Response.Write("<script language='javascript'
    type='text/javascript'>OptionsWindow=open('Options.aspx', 'OptionsWindow',
    'width=830, height=630, top=50, left=50, resizable=yes, toolbar=no,
    scrollbars=yes')</script>")

    You'd need to work on your querystring.

    Hope this helps, Graeme

    "Erik Veldkamp" <erik.veldkamp@wxs.nl> wrote in message
    news:bgik9v$41u$1@reader10.wxs.nl...
    > Hi there,
    >
    > With the following statements:
    > Server.Transfer("Voorbeeld.aspx");
    >
    > Response.Redirect("Voorbeeld.aspx?code="+Label1.Te xt.Trim());
    >
    > I can open a page in an existing window. But I would like to open it in a
    > new window, like you can do with a hyperlink when you set the Target
    > property to _blank. How can I do this?
    >
    > Thanks for your help.
    >
    >
    > Erik.
    >
    >

    Sabre Guest

  4. #3

    Default Re: How to open a page in a new window?

    Check out this article, this will help you,
    [url]http://www.microsoft.com/india/msdn/articles/PopupCalendarinASP.aspx[/url]

    --
    Saravana
    Microsoft India Community Star,MC**
    [url]www.ExtremeExperts.com[/url]



    "Erik Veldkamp" <erik.veldkamp@wxs.nl> wrote in message
    news:bgik9v$41u$1@reader10.wxs.nl...
    > Hi there,
    >
    > With the following statements:
    > Server.Transfer("Voorbeeld.aspx");
    >
    > Response.Redirect("Voorbeeld.aspx?code="+Label1.Te xt.Trim());
    >
    > I can open a page in an existing window. But I would like to open it in a
    > new window, like you can do with a hyperlink when you set the Target
    > property to _blank. How can I do this?
    >
    > Thanks for your help.
    >
    >
    > Erik.
    >
    >

    Saravana Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139