473,395 Members | 2,006 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,395 software developers and data experts.

accessing showModalDialog args in ASP.NET

SL
Hi there... if I call window.showModalDialog(url,args,options) in javascript
on my page, and the target url is another asp.net page, when that page
loads, how can I access the data sent in the args parameter in the target
aspx page?

Thanks,
Sheryl
Feb 27 '06 #1
4 1944
window.dialogarguements. Check out this page-

http://msdn.microsoft.com/library/de...odaldialog.asp

HTH,
Darren Kopp
http://blog.secudocs.com/

Feb 27 '06 #2
SL
Thank you.... is there no way to detect it server-side, in Page_Load, or
something?

If not, thanks anyway!
Sheryl
"Darren Kopp" <da********@gmail.com> wrote in message
news:11*********************@i39g2000cwa.googlegro ups.com...
window.dialogarguements. Check out this page-

http://msdn.microsoft.com/library/de...odaldialog.asp

HTH,
Darren Kopp
http://blog.secudocs.com/

Feb 27 '06 #3
Not that I know of off the top of my head, javascript isn't my strong
point. You could pull data in page_load if you were passing simple
variables in the querystring. I would suspect that you could use some
AJAX to get the variables as well, but no 100% guarantee. I'm sure
there's ways to make it possible (like assign the vars to hidden text
boxes and trigger a submit, then scrape request.form), but not default
"out-of-the-box" asp.net.

-Darren Kopp
http://blog.secudocs.com/

Feb 27 '06 #4
Hi Sheryl,

I agree with Darren, as for the "dialogarguements", they're client-side
script specific interfaces so the ASP.NET server-side code can not directly
use them. ASP.NET server-side code can only get the querystring embeded in
the url. So if you need to make such parameters available in the ASP.NET
server-side code when the page is first time loaded, we need to use
querystring as the transfer approach.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Feb 28 '06 #5

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

Similar topics

3
by: Alexander Eberts | last post by:
I'm new to python so appologies to the group if this question is asked often. I'm wondering if it's possible to query an object instance to find out what arguments the instance's __init__ function...
2
by: Simon Storr | last post by:
Is it possible to make the parent window refresh when a modal dialog is closed? I know I can use window.opener.location.reload(true); for a 'normal' window, but this doesn't work for...
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...
4
by: MW de Jager | last post by:
I want to call ShowModalDialog(...) from my C# code in the code behind page of my aspx page. I do not want to link this to a button, since I want to first do some checking myself before I call the...
3
by: johkar | last post by:
Just want a verification of logic. This seems to work for IE and Firefox, but I wonder if it would be a problematic test in any of the other latest browsers? Is the use of the "window" object...
6
by: David | last post by:
Hi all, I am opening a webform with showModalDialog. This appears to pop-up fine, though I have a problem... Inside the webform is a treeview control. When the treeview is populated, I am...
1
by: GuruPrasadBytes | last post by:
I am called ShowModalDialog() from the master page as below. .... onclick='javascript: addSecurities = objDoc.selectSingleNode("//Security"); Args = addSecurities; Args = buildCategoryTable; Args...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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.