Get session variable in javascript

G

Guest

if i create a session variable name session('abc') in asp.net
how to get it in javascript
 
G

Greg Young [MVP]

You can't ... you would have to provide either an accessor for it (say
through a webservice etc) or write it out to the client as a hidden form
field etc so javascript can pick it up.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top