launching modal IE window from server code

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

  1. #1

    Default Re: launching modal IE window from server code

    Hi Zeng,

    You might want to add a Literal control just before your closing </form> tag.
    On the linkbutton click you can output client-side code to make the modal
    window appear.

    Something like this:

    Private Sub LinkButton1_Click _
    (ByVal sender As System.Object, _
    ByVal e As System.EventArgs) _
    Handles LinkButton1.Click
    ' Do stuff on the server
    LinkButton1.Text = "Okay, I was clicked."
    Literal1.Text = "<script>showModalDialog('http://www.gc.ca/');</script>"
    End Sub

    Does this help?

    Ken
    MVP [ASP.NET]

    "Zeng" <zzy@nonospam.com> wrote in message
    news:ONBFZFLUDHA.2260@TK2MSFTNGP12.phx.gbl...
    Hi,

    I working on a page (let's call it page A). Page A contains a link button
    that when user clicks on it, my handler in the server (must be in the
    server) will process the event then launch another IE window in modal mode
    and display page B. Does anyone know how to do that?




    Ken Cox [Microsoft MVP] Guest

  2. Similar Questions and Discussions

    1. Parent window for modal dialog
      What is the best way to get a parent window for a modal dialog? Currently, I am using the following code: HWND hParent =...
    2. The PopUpManager does not seem to be a real Modal Window
      I really do not forget to specify the thrid parameter to "true" when i popup the window. pop = mx.managers.PopUpManager.createPopUp(pnl,...
    3. Modal Window in Safari 1.2 \1.3
      Hi All, The 'Modal' window in my web applications does not work in Safari. Is there any way to make this function work in Safari ? or can any one...
    4. Modal window
      I have a Flash form (form A) with lots of buttons and other components such as comboboxes on it. Another Flash form (form B) can be opened from the...
    5. Popup Modal Window
      try this ... private void popup(string param1, string param2) { string sWindow = "mywindow"; string jscript; jscript = "<script...
  3. #2

    Default Re: launching modal IE window from server code

    Check out this article, here i am using button to launch the IE window.
    [url]http://www.microsoft.com/india/msdn/articles/PopupCalendarinASP.aspx[/url]

    --
    Saravana
    Microsoft India Community Star,
    MCAD,SE,SD,DBA.


    "Zeng" <zzy@nonospam.com> wrote in message
    news:ONBFZFLUDHA.2260@TK2MSFTNGP12.phx.gbl...
    > Hi,
    >
    > I working on a page (let's call it page A). Page A contains a link button
    > that when user clicks on it, my handler in the server (must be in the
    > server) will process the event then launch another IE window in modal mode
    > and display page B. Does anyone know how to do that?
    >
    >
    >

    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