Hello,
I am store the value into session using the java script. But when i refreshing the page session is every time null("").
var strPath="1234:10000;1357:007;";
'<%Session["OldValues"] = "' + strPath +'"; %>' ;
var temp= '<%= Session["OldValues"] + ""%>';
So, how to store the value into session after refreshing the page using javascript.
Thanks & Regards,
Brijesh Mandaliya
Suthish NairPosted Oct 25, 2010, 4:05 AM
Suthish NairPosted Oct 24, 2010, 3:39 AM
You need to work this at server side/code behind or use Ajax/web services to change the value..
Andrew FensterPosted Oct 24, 2010, 3:23 AM
In other words, just writing <% Session[x] = y; %> in a client side Javascript does nothing. There's no postback, not contact with the server to tell it to update Session.