473,396 Members | 1,608 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.

How to retreive window.showModalDialog dialogArguments in C# code?

I am creating a modal dialog box in ASP.NET via client-side javascript and
passing vArguments parameters in an array form using this syntax:

vReturnValue = window.showModalDialog(sURL [, vArguments] [, sFeatures])
when the modal dialog box comes up, I would like to retreive the vArguments
parameters in C# upon Page_Load, How can I do this?
Nov 17 '05 #1
2 12788
You would have to force a postback to the page (or use javascript to
make an XML request under the covers) passing that value to your C# page.
This would cause the page to reload (using the former suggestion).
Basically, you would have to create a hidden input field in the form, then
submit the form.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"conraba" <co*****@discussions.microsoft.com> wrote in message
news:7E**********************************@microsof t.com...
I am creating a modal dialog box in ASP.NET via client-side javascript and
passing vArguments parameters in an array form using this syntax:

vReturnValue = window.showModalDialog(sURL [, vArguments] [, sFeatures])
when the modal dialog box comes up, I would like to retreive the
vArguments
parameters in C# upon Page_Load, How can I do this?

Nov 17 '05 #2
I had this in-mind but wasn't sure if there is a namespace that already
provides function to do this in C#.

Thanks

"Nicholas Paldino [.NET/C# MVP]" wrote:
You would have to force a postback to the page (or use javascript to
make an XML request under the covers) passing that value to your C# page.
This would cause the page to reload (using the former suggestion).
Basically, you would have to create a hidden input field in the form, then
submit the form.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"conraba" <co*****@discussions.microsoft.com> wrote in message
news:7E**********************************@microsof t.com...
I am creating a modal dialog box in ASP.NET via client-side javascript and
passing vArguments parameters in an array form using this syntax:

vReturnValue = window.showModalDialog(sURL [, vArguments] [, sFeatures])
when the modal dialog box comes up, I would like to retreive the
vArguments
parameters in C# upon Page_Load, How can I do this?


Nov 17 '05 #3

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

Similar topics

3
by: Jonan | last post by:
Hi, I use JavaScript I have tree windows. Jonan1.html has this code erref1=window.open("Jonan2.html", "mypage",null); This opens Jonan2.html and it has this code...
3
by: Gretjns | last post by:
I'm trying to figure out this script doesn't display any text in the child window and why I'm getting the null or not an object error. It's taken directly from the Javascript and DHTML cookbook...
1
by: mtz | last post by:
On IE there is a way to open a window from one page and pass an object to it, when you use showModalDialog. Is there a way to do the same on NS/Mozilla/FireFox? On IE:...
1
by: stellabein | last post by:
Hi friends, I am very very new to programing. i have a one main window from that window i am opening one modal window using showmodaldialog(m.jp...). in that modal window i have a form. when i...
2
by: Cheryl | last post by:
Hi, I have encounter a problem.Language use is C#. I would like to open a new window (is a modal window, where I m not able to switch from parent window after this window is open)from the parent...
2
by: IAmSoNeat | last post by:
The showModalDialog has an argument parameter that will allow the modaldialog to access it through the client side property: dialogArguments. Is there any way to access this property on the...
3
by: Paul K | last post by:
I'm not quite sure if the problem I'm having is a restriction of showModalDialog or if there is a way around it. The web app I am working requires the user to select a record from a list. I pop...
3
by: nitinmukesh123 | last post by:
Hi I am facing a problem with setting the modal window title.. source of 1.html <html> <head> <script language="javascript"> function openNewWin() {...
3
by: gsuns82 | last post by:
Hi all, I am using modal window for some update purpose, the issue i am facing is,i am not able to refresh parent after closing modal window. The code i used: ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: 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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.