Session variables

shadowskull

Member
Joined
Apr 17, 2002
Messages
10
Location
Waldorf, Md
Ok, I have a question for you guys in regards to session variables. Im using an image map. Im setting the href of each area = a javascript (and/or a vbscript) function (Ive tried both).

Because of this, I need to set the session variable in that java/vbscript function, but I am having problems doing that. Whenever I set <% Session("Var") = Value %>, where Value is the parameter passed into the function, I get an error saying that "Value" is private. What do I do?
 
Session variables are a serverside thing, and any java/vbscript you run on the client side has nothing to do with that until you submit a form or request a page from the server.
 
Public

Make it public.

Public value As String

Are you using code-behind?
Protected value As String


works a little different if so/not. Does it work correctly if you hard-code Value as a value?

How are u defining your Value variable?
 
Back
Top