shadowskull Posted January 21, 2003 Posted January 21, 2003 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? Quote
*Gurus* divil Posted January 21, 2003 *Gurus* Posted January 21, 2003 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. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
aikeith Posted January 23, 2003 Posted January 23, 2003 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? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.