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

Andrew FensterRank #983 · 2K reputationPosted Oct 23, 2010, 11:23 PM EDT
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.
Suthish NairRank #92 · 22.8K reputationPosted Oct 23, 2010, 11:39 PM EDT
You need to work this at server side/code behind or use Ajax/web services to change the value..
Suthish NairRank #92 · 22.8K reputationPosted Oct 25, 2010, 12:05 AM EDT