Get session variable in javascript

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • joe

    Get session variable in javascript

    if i create a session variable name session('abc') in asp.net
    how to get it in javascript
  • Greg Young [MVP]

    #2
    Re: Get session variable in javascript

    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.


    "joe" <joe@discussion s.microsoft.com > wrote in message
    news:995245BD-D237-4BE7-B276-7DA060114564@mi crosoft.com...[color=blue]
    > if i create a session variable name session('abc') in asp.net
    > how to get it in javascript[/color]


    Comment

    Working...