Accessing Asp.Net Session variables in JS

前端 未结 4 2073
深忆病人
深忆病人 2021-01-05 12:44

I\'m not able to access the variable in my .js file

the code i have at the top of the page is:



        
4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-05 13:13

    I use it this way.

    Then I use jQuery to access the value.

    
    

    Or even on a control.

    
    

    This method survives ajax and postbacks.

    Cheers

提交回复
热议问题