Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Ok, I have a question for you guys in regards to session variables. I'm using an image map. I'm setting the href of each area = a javascript (and/or a vbscript) function (I've 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?

Posted

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?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...