Open a *new* window?

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

  1. #1

    Default Open a *new* window?

    I would like my web app to open a new browser window,
    similar to a standard target="_blank" form tag.

    The new page must preserve Session information, and have
    control passed to the Form_Load event.

    I have tried Server.Transfer, Response.Redirect and
    setting the form target to "_blank", but none of these
    have worked.

    Please any help?

    Thanks
    David Albany, Developer
    Milatko Communications
    David Albany Guest

  2. Similar Questions and Discussions

    1. Page_Load not fired when window.open used to load window.
      Hello John, Did you mean that the problem only happens after you upgrade to VS 2003 and framework 1.1? Does the problem exist in VS 2002 and...
    2. New Window Target doesn't open a new window inContribute but does in Firefox
      I have made the neccessary steps to allow a link to open in a new window by choosing "New Window" as the Target, and when testing the published page...
    3. window.open - resizing a window
      Is there a way to resize a window once it is opened through java:window.open I want to run a series of animations in a single window, however the...
    4. don't open new window
      Is there the possibility of not permiting the user of opening two windows of the same web site? Thanks ...
    5. How to get a OPEN/SAVE dialog option window when open Excel from IE browser.
      I use the following to open Excel from IE browser, but I don't get a OPEN/SAVE dialog option window. Instead, the Excel opened in the browser...
  3. #2

    Default Re: Open a *new* window?

    David:

    AFAIK, you cannot maintain session state between separate browser windows.
    You will need to use another method of state persistence, IE querystrings,
    cookies, etc.


    "David Albany" <david.albany@milatko.co.uk> wrote in message
    news:0b5501c360bd$1b03b8a0$a501280a@phx.gbl...
    > I would like my web app to open a new browser window,
    > similar to a standard target="_blank" form tag.
    >
    > The new page must preserve Session information, and have
    > control passed to the Form_Load event.
    >
    > I have tried Server.Transfer, Response.Redirect and
    > setting the form target to "_blank", but none of these
    > have worked.
    >
    > Please any help?
    >
    > Thanks
    > David Albany, Developer
    > Milatko Communications

    Learning SQL Server Guest

  4. #3

    Default Re: Open a *new* window?

    Do it on the client side using javascript - window.open.

    --
    Chris Jackson
    Software Engineer
    Microsoft MVP - Windows XP
    Windows XP Associate Expert
    --
    "David Albany" <david.albany@milatko.co.uk> wrote in message
    news:0b5501c360bd$1b03b8a0$a501280a@phx.gbl...
    > I would like my web app to open a new browser window,
    > similar to a standard target="_blank" form tag.
    >
    > The new page must preserve Session information, and have
    > control passed to the Form_Load event.
    >
    > I have tried Server.Transfer, Response.Redirect and
    > setting the form target to "_blank", but none of these
    > have worked.
    >
    > Please any help?
    >
    > Thanks
    > David Albany, Developer
    > Milatko Communications

    Chris Jackson Guest

  5. #4

    Default Re: Open a *new* window?

    to open new window you have 2 choices
    1. add target="_blank" to form tag
    2. use javascript
    on server side cmdLink.Attributes.Add("onclick",
    "javascript:window.open(.............);")
    both choices will preserve session
    Alex
    [email]alex-krupoff@mailbits.com[/email]

    "David Albany" <david.albany@milatko.co.uk> wrote in message
    news:0b5501c360bd$1b03b8a0$a501280a@phx.gbl...
    > I would like my web app to open a new browser window,
    > similar to a standard target="_blank" form tag.
    >
    > The new page must preserve Session information, and have
    > control passed to the Form_Load event.
    >
    > I have tried Server.Transfer, Response.Redirect and
    > setting the form target to "_blank", but none of these
    > have worked.
    >
    > Please any help?
    >
    > Thanks
    > David Albany, Developer
    > Milatko Communications

    Alex K 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