Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / JScript / January 2004

Tip: Looking for answers? Try searching our database.

Getting object in serverside VB script from ShowModalDialog on the Client

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jim M - 19 Jan 2004 03:54 GMT
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.
Martin Honnen - 19 Jan 2004 11:47 GMT
> 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)

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.