Avatar of Darkejo1
Darkejo1

asked on 

ASP & VBS - Passing variables in vbs from one asp page to another

Please post an example.
VB ScriptASPASP.NET

Avatar of undefined
Last Comment
Paul MacDonald
ASKER CERTIFIED SOLUTION
Avatar of Darkejo1
Darkejo1

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of Paul MacDonald
There are a couple ways to do this.  Perhaps the most common one is to use session variables.

You can set a session variable in vb.net by...
  Session("VariableName") = SomeValue

You can read the value of a session variable by...
  Dim x as string = Session("VariableName")

You can store values other than strings, but that was the simplest example here.

More info:
http://msdn.microsoft.com/en-us/library/ms178581(VS.100).aspx
http://msdn.microsoft.com/en-us/library/6ad7zeeb(v=vs.100).aspx
http://msdn.microsoft.com/en-us/library/03sekbw5(v=vs.100).aspx
ASP.NET
ASP.NET

The successor to Active Server Pages, ASP.NET websites utilize the .NET framework to produce dynamic, data and content-driven web applications and services. ASP.NET code can be written using any .NET supported language. As of 2009, ASP.NET can also apply the Model-View-Controller (MVC) pattern to web applications

128K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo