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

  1. #1

    Default Re: Popup Modal Window

    try this ...

    private void popup(string param1, string param2)
    {

    string sWindow = "mywindow";

    string jscript;

    jscript = "<script language='JavaScript'>mywindow =
    window.open('somepage.aspx?parameter1=" + param1 +

    "&parameter2=" + param2 + "','" + sWindow +
    "','height=420,width=460,toolbars=no,resizable=no, scrollbars=yes')</script>"
    ;

    RegisterClientScriptBlock("mywindow", jscript);

    }

    .... The code within this function can be used even within an even procedure
    like OnClick ...

    Hope it helps.


    "Kenneth" <kenneth.philp@chello.se> wrote in message
    news:057e01c33ee4$809d1670$a501280a@phx.gbl...
    > Hi,
    >
    > I'm writing an asp.net application, but what I can't
    > figure out is how to implement a popup modal window with
    > parameters. I've done this a dozen times in standard asp,
    > but in asp.net I can't figure it out.
    >
    > Let's say I have a customer grid and I want to edit one
    > record in a popup modal window and I want all fields to
    > follow to the popup window. How is this accomplished?
    >
    > Any code?
    >
    > TIA
    >
    > /Kenneth

    Khutso 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. How to get flex popup modal dialog to fade entirebrowser window?
      I have a flex app embedded in an html page and within the app I have a need to pop-up some content, in a flex application component. I need the...
    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. Modal Dialog Popup from WebControl - What is wrong with this...
      http://www.aspfaq.com/show.asp?id=2257 "Jim Mitchell" <jim_mitchell@mindspring.com> wrote in message...
  3. #2

    Default Re: Popup Modal Window

    Thanks,

    Oh, I forgot, I'm using VB.NET, not C#.

    Have some code for that?

    /Kenneth
    >-----Original Message-----
    >try this ...
    >
    >private void popup(string param1, string param2)
    >{
    >
    > string sWindow = "mywindow";
    >
    > string jscript;
    >
    > jscript = "<script language='JavaScript'>mywindow =
    >window.open('somepage.aspx?parameter1=" + param1 +
    >
    > "¶meter2=" + param2 + "','" + sWindow +
    >"','height=420,width=460,toolbars=no,resizable=no ,scrollba
    rs=yes')</script>"
    >;
    >
    > RegisterClientScriptBlock("mywindow", jscript);
    >
    >}
    >
    >.... The code within this function can be used even
    within an even procedure
    >like OnClick ...
    >
    >Hope it helps.
    >
    >
    Kenneth Guest

  4. #3

    Default Re: Popup Modal Window

    Muppet!


    Ting Zwei Kuei 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