in my home page i updated the session variable from client side using javascript as per the below:
function test(){
var myvar = "Hi All"
'<% Session("temp") = "' + myvar + '" %>';
alert('<%=Session("temp") %>');
}
the alert shows the updated value which is correct "Hi All", but when trying to catch the session variable in the code behind in other page, i got the name of variable "myvar" not the value of this variable:
MessageBox.Show(HttpContext.Current.Session("temp"), "mymessage")
this message box displays: '+ mayvar +'
any idea about this issue??
thank you in advance