I pass variables to my ASPX page as shown....
myObject.Test = "TestMessage"
retVal =
showModalDialog(Test.aspx,myObject,"dialogWidth:900px;dialogHeight:500px;sta
tus:0");
I can get the value of test using client side javascript on test.aspx using
[window.dialogArguments], but is there a way to get the value of test on the
server using the Request object or other object?
Thanks in advance.
> I pass variables to my ASPX page as shown....
>
[quoted text clipped - 6 lines]
> [window.dialogArguments], but is there a way to get the value of test on the
> server using the Request object or other object?
As long as it is a string value you can pass it in the query string
showModalDialog("Test.aspx?arg=" + escape(myObject.Test), myObject,
"...")
and then in Test.aspx you need to read
Request.QueryString["arg"]
(where the exact syntax for VB.NET is likely different)

Signature
Martin Honnen
http://JavaScript.FAQTs.com/
Jim M - 27 Jan 2004 06:57 GMT
Yes, I can pass on the querystring, but is this secure? What if I have
sensative data that I would like to pass?
Thanks,
Jim
> > I pass variables to my ASPX page as shown....
> >
> > myObject.Test = "TestMessage"
> > retVal =
showModalDialog(Test.aspx,myObject,"dialogWidth:900px;dialogHeight:500px;sta
> > tus:0");
> >
[quoted text clipped - 8 lines]
> Request.QueryString["arg"]
> (where the exact syntax for VB.NET is likely different)