473,396 Members | 1,996 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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.
Nov 17 '05 #1
2 4389
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" <an*********@era-environmental.com> wrote in message
news:en**************@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.

Nov 17 '05 #2
Thanks John,

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

Andrei.
"John Timney (Microsoft MVP)" <xy********@btinternet.com> wrote in message
news:uk**************@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" <an*********@era-environmental.com> wrote in message
news:en**************@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.


Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Chuck Anderson | last post by:
I have a function with 7 inputs. The last three have default values. I want to call that function specifying the first four, skip two and then specify the last. I thought I could write this...
9
by: Matt Eberts | last post by:
Sorry, bad title. Anyway, is there a way to pass the arguments to an object instantiated via a constructor using the arguments object and have it expanded, so to speak, so that it doesn't appear as...
6
by: Melkor Ainur | last post by:
Hello, I'm attempting to build an interpreter for a pascal-like language. Currently, I don't generate any assembly. Instead, I just build an abstract syntax tree representing what I've parsed...
21
by: dragoncoder | last post by:
Consider the following code. #include <stdio.h> int main() { int i =1; printf("%d ,%d ,%d\n",i,++i,i++); return 0; }
41
by: Telmo Costa | last post by:
Hi. I have the following code: -------------------------------------- function Tunnel() { //arguments(???); } function Sum() { var sum = 0; for (i=0; i<arguments.length; i++) sum +=...
9
by: Csaba Gabor | last post by:
Inside a function, I'd like to know the call stack. By this I mean that I'd like to know the function that called this one, that one's caller and so on. So I thought to do: <script...
7
by: sfeher | last post by:
Hi All, Is there a way to preserve the arguments across functions? I have: <script> function myFirstFunction() { // arguments = 'param1'
36
by: Pacific Fox | last post by:
Hi all, haven't posted to this group before, but got an issue I can't work out... and hoping to get some help here ;-) I've got a base object that works fine with named arguments when called...
7
by: VK | last post by:
I was getting this effect N times but each time I was in rush to just make it work, and later I coudn't recall anymore what was the original state I was working around. This time I nailed the...
2
ADezii
by: ADezii | last post by:
When a call is made to a Sub or Function Procedure, you can supply Arguments in the exact order they appear in the Procedure's definition, or you can supply them in any position by name. To...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.