Ask a Question related to ASP.NET General, Design and Development.
-
andrei #1
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
-
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... -
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... -
using 'do' with arguments
hello im wondering if you can pass arguments with the 'do' command? like: on event h = "handler" -
[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: -
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... -
John Timney \(Microsoft MVP\) #2
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...form.> Hi Group,
>
> I need to open a modal window (a search form) from a link on the mainthis:> I'm also passing it a parameter - a table name, so the call looks likeand> 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 tableserver> 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> part has already run...
>
> How can I do this ? Any ideas ?
>
> Many thanks,
> Andrei.
>
>
John Timney \(Microsoft MVP\) Guest
-
andrei #3
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...in> 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...> form.> > Hi Group,
> >
> > I need to open a modal window (a search form) from a link on the main> this:> > I'm also passing it a parameter - a table name, so the call looks like> > res = window.showModalDialog("search.aspx", "PROD") in javascript,> and> > 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> server> > 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>> > part has already run...
> >
> > How can I do this ? Any ideas ?
> >
> > Many thanks,
> > Andrei.
> >
> >
>
andrei Guest



Reply With Quote

