accessing showModalDialog args in ASP.NET

S

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
 
S

SL

Thank you.... is there no way to detect it server-side, in Page_Load, or
something?

If not, thanks anyway!
Sheryl
 
D

Darren Kopp

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/
 
S

Steven Cheng[MSFT]

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.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top