By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,290 Members | 1,403 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,290 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.