JElster
asked on
How to set a session variable in JavaScript
Hi..
How can I set a Session variable in JS?
I have code that get the 'value' variable
But when I try and set the session to it - I get 'value';
<%Session["FILTER_EXPRESSI ON"] = "+ value +";%>
What is the proper way to set the session variable to the actual value? I'm using ASP.Net and C#
thx
How can I set a Session variable in JS?
I have code that get the 'value' variable
But when I try and set the session to it - I get 'value';
<%Session["FILTER_EXPRESSI
What is the proper way to set the session variable to the actual value? I'm using ASP.Net and C#
thx
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
you can't do this using ONLY javascript
you need help of the server
the TUTORIAL/SAMPLE codes in the link, show you how to call this server code using PageMethods
just replace "foo", “SessionKey” by "FILTER_EXPRESSION"
you need help of the server
the TUTORIAL/SAMPLE codes in the link, show you how to call this server code using PageMethods
just replace "foo", “SessionKey” by "FILTER_EXPRESSION"
ASKER
sorry still don't get it.. tried converting to C# get pagemethods undefined
ASKER
nevermind got it
ASKER