We help IT Professionals succeed at work.
Get Started

Using Session Variable in JavaScript

OB1Canobie asked
Last Modified: 2012-05-12
I have a web page for asp.net vb. I have a session variable "ProjectID" that I need to access for a path in JavaScript. Can someone assist in how to access the session variable in the building of the path. I am assigning a variable the path. See what I have thus far. I need the session variable value as indicated. Thanks.

var newhref = ("../forms/form_task_utility.aspx?Mode=A%ProjectID="  %>);
Watch Question
This problem has been solved!
Unlock 1 Answer and 2 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE