|
Accessing Session variable from javascript
Hi,
I'm making my first ASP.NET web application. I read in several forums that it is possible to access a Session variable from javascript by using the following syntax:
var a = '<%=Session("Village")%>';
However, variable 'a' gets the value "<%=Session("Village")%>" instead of the value of Session variable 'Village'.
Any ideas what I'm doing wrong?
Thanks in advance!
|