showDialogModal and arguments

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

  1. #1

    Default showDialogModal and arguments

    Hi Group,

    I need to open a modal window (a search form) from a link on the main form.
    I'm also passing it a parameter - a table name, so the call looks like this:
    res = window.showModalDialog("search.aspx", "PROD") in javascript, in
    the main form.

    Now I need to access the value of the parameter in Page_Load of the
    search.aspx, so that I can load the information from the specified table and
    then show the modal window.
    But it seems I can only access the parameter in javascript, with
    window.dialogArguments. And at that time it's already too late - the server
    part has already run...

    How can I do this ? Any ideas ?

    Many thanks,
    Andrei.


    andrei Guest

  2. Similar Questions and Discussions

    1. JVM Arguments
      hello, I would like to know if we can define several directories for the "libPath" attribute in the coldfusion MX 7 administrator to have different...
    2. Getting URL arguments
      I'm trying to read the arguments of the URL for the document. I'm new to PHP and can't figure it out. I've played around with $_SERVER but the...
    3. using 'do' with arguments
      hello im wondering if you can pass arguments with the 'do' command? like: on event h = "handler"
    4. [PHP] Function arguments
      Hello, If you are worried about this issue your best option is to switch to an object oriented approach. all the best Hardik Doshi wrote:
    5. exec for EXE with arguments
      hi i'd like to call an exe with several parameters like this: the parameter -name= must have quotes from beginning til end because of the Spaces...
  3. #2

    Default Re: showDialogModal and arguments

    Juts a thought, but when you show the dialogue couldn't you just pass the
    table name as an URL value

    something like:
    res = window.showModalDialog("search.aspx?tablename="PRO D")

    You could then get access to it in the page load event of search.aspx

    --
    Regards

    John Timney (Microsoft ASP.NET MVP)
    ----------------------------------------------
    <shameless_author_plug>
    Professional .NET for Java Developers with C#
    ISBN:1-861007-91-4
    Professional Windows Forms
    ISBN: 1861005547
    Professional JSP 2nd Edition
    ISBN: 1861004958
    Professional JSP
    ISBN: 1861003625
    Beginning JSP Web Development
    ISBN: 1861002092
    </shameless_author_plug>
    ----------------------------------------------

    "andrei" <andrei.toma@era-environmental.com> wrote in message
    news:enB#a98RDHA.2432@TK2MSFTNGP10.phx.gbl...
    > Hi Group,
    >
    > I need to open a modal window (a search form) from a link on the main
    form.
    > I'm also passing it a parameter - a table name, so the call looks like
    this:
    > res = window.showModalDialog("search.aspx", "PROD") in javascript, in
    > the main form.
    >
    > Now I need to access the value of the parameter in Page_Load of the
    > search.aspx, so that I can load the information from the specified table
    and
    > then show the modal window.
    > But it seems I can only access the parameter in javascript, with
    > window.dialogArguments. And at that time it's already too late - the
    server
    > part has already run...
    >
    > How can I do this ? Any ideas ?
    >
    > Many thanks,
    > Andrei.
    >
    >

    John Timney \(Microsoft MVP\) Guest

  4. #3

    Default Re: showDialogModal and arguments

    Thanks John,

    This is what I just did... and it works fine.
    Thank you !

    Andrei.


    "John Timney (Microsoft MVP)" <xyztimneyj@btinternet.com> wrote in message
    news:ukV2ec9RDHA.1552@TK2MSFTNGP12.phx.gbl...
    > Juts a thought, but when you show the dialogue couldn't you just pass the
    > table name as an URL value
    >
    > something like:
    > res = window.showModalDialog("search.aspx?tablename="PRO D")
    >
    > You could then get access to it in the page load event of search.aspx
    >
    > --
    > Regards
    >
    > John Timney (Microsoft ASP.NET MVP)
    > ----------------------------------------------
    > <shameless_author_plug>
    > Professional .NET for Java Developers with C#
    > ISBN:1-861007-91-4
    > Professional Windows Forms
    > ISBN: 1861005547
    > Professional JSP 2nd Edition
    > ISBN: 1861004958
    > Professional JSP
    > ISBN: 1861003625
    > Beginning JSP Web Development
    > ISBN: 1861002092
    > </shameless_author_plug>
    > ----------------------------------------------
    >
    > "andrei" <andrei.toma@era-environmental.com> wrote in message
    > news:enB#a98RDHA.2432@TK2MSFTNGP10.phx.gbl...
    > > Hi Group,
    > >
    > > I need to open a modal window (a search form) from a link on the main
    > form.
    > > I'm also passing it a parameter - a table name, so the call looks like
    > this:
    > > res = window.showModalDialog("search.aspx", "PROD") in javascript,
    in
    > > the main form.
    > >
    > > Now I need to access the value of the parameter in Page_Load of the
    > > search.aspx, so that I can load the information from the specified table
    > and
    > > then show the modal window.
    > > But it seems I can only access the parameter in javascript, with
    > > window.dialogArguments. And at that time it's already too late - the
    > server
    > > part has already run...
    > >
    > > How can I do this ? Any ideas ?
    > >
    > > Many thanks,
    > > Andrei.
    > >
    > >
    >
    >

    andrei 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