Server side Window.open?

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

  1. #1

    Default Server side Window.open?

    Ok, this has to be either easy, or impossible...

    I'd like to fire of a pop up window using serverside code...

    Basically its a preview popup of a form.
    The aspx pop up page goes through the session etc to display the information
    entered so far.
    Just a javascipt href will not work as when the preview button or link is
    pressed the form needs to post back to the server to make the session
    information up to date.
    Once the processing has been done, I can fire the pop up.

    Is there a way of doing this using the Request, Response or Page objects?
    Currently the only way I can think of doing it is to output javascipt to the
    page as it loads and that calls the window.open.
    I personally think that is quite messy and don't like javascipt that
    executes on the page loading. I would rather have a neater way of doing it
    if anyone knows of one?

    Any help much appreciated.
    Thanks,
    Robin


    Robin Day Guest

  2. Similar Questions and Discussions

    1. Controls with a client side onLoad function or seting a cursor server side
      Is there any way to create a web control that calls a client side onLoad function? Its diffucilt since you are not able to access the form or...
    2. Client side and server side scripting problem
      Hiya I have a problem with using some client side and server side scripting together in an ASP. I'm using VBScript. What I'm trying to achieve...
    3. Server control button click: open pop up browser window
      Checkout ... ShowModalDialog in the javascript reference. It works quite will if you want to use client side javascript. "Alvin Bruney"...
    4. open pop up window from asp server control event handler
      Check out this article, this will help you http://www.microsoft.com/india/msdn/articles/PopupCalendarinASP.aspx In this article, i used window.open...
    5. closing showModalDialog window from server side
      I have a simple page that I will like to display while i am processing the user request in the server. The page only has a label saying "Please...
  3. #2

    Default Re: Server side Window.open?

    Create your script to open the window, and use Page.RegisterStartupScript()
    to add the script to the page, to be run when the page loads in the browser.

    HTH,

    Kevin Spencer
    Microsoft FrontPage MVP
    Internet Developer
    [url]http://www.takempis.com[/url]
    Big things are made up of
    lots of Little things.

    "Robin Day" <robin.day@advorto.com> wrote in message
    news:%23jrnFqxPDHA.2768@tk2msftngp13.phx.gbl...
    > Ok, this has to be either easy, or impossible...
    >
    > I'd like to fire of a pop up window using serverside code...
    >
    > Basically its a preview popup of a form.
    > The aspx pop up page goes through the session etc to display the
    information
    > entered so far.
    > Just a javascipt href will not work as when the preview button or link is
    > pressed the form needs to post back to the server to make the session
    > information up to date.
    > Once the processing has been done, I can fire the pop up.
    >
    > Is there a way of doing this using the Request, Response or Page objects?
    > Currently the only way I can think of doing it is to output javascipt to
    the
    > page as it loads and that calls the window.open.
    > I personally think that is quite messy and don't like javascipt that
    > executes on the page loading. I would rather have a neater way of doing it
    > if anyone knows of one?
    >
    > Any help much appreciated.
    > Thanks,
    > Robin
    >
    >

    Kevin Spencer 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