Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Passing Parameters to a VBscript function from VB

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,563
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Passing Parameters to a VBscript function from VB
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Passing Parameters to a VBscript function from VB - 1/22/2002 3:17:57 PM   
  kaiteriteri

 

Posts: 2
Score: 0
Joined: 1/22/2002
From:
Status: offline
I have a .Net web site with most script written in VB. However, some key stuff is in VBscript. A recent user request requires me to pass an argument to the VBscript. This
argument is stored as a Session variable.

So, for other VB functions they simply refer to the session variable. But for VBscript functions this approach doesn't seem to be available (see a forum posting below, if you
have a solution you can post it here too!)

So, another alternative would be to pass it as a HREF parameter, so i'd have a hyperlink to

....foo.aspx?user=Joe

Then within the VBscript function i want to
extract this "user" name. How do i do it?
If i try in a VBscript function (within the foo.aspx page):

sub windows_onLoad()
userName = Request.Params("user")
msgbox userName
end sub

it doesn't work. I get "Error: Object required:'Request'" Any clues why?
Do i have to load some class library or create some Request object first?

thx
j.
 
 
Post #: 1
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Passing Parameters to a VBscript function from VB Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts