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_EXPRESSION"] = "+ value +";%>

What is the proper way to set the session variable to the actual value?  I'm using ASP.Net and C#

thx
LVL 1
JElsterAsked:
Who is Participating?
 
JElsterAuthor Commented:
Don't understand how to do it......
0
 
leakim971PluritechnicianCommented:
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"
0
 
JElsterAuthor Commented:
sorry still don't get it..  tried converting to C# get pagemethods undefined
0
 
JElsterAuthor Commented:
nevermind got it
0
All Courses

From novice to tech pro — start learning today.