How to get asp.net Session value in jquery method?

前端 未结 6 1478
迷失自我
迷失自我 2020-12-13 16:11

I want to access a Session value in jquery method in the ASP.NET MVC view page. See the below code,

$(\'input[type=text],select,input[type=checkbox],input[ty         


        
6条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-13 16:48

    $('input,select').attr('disabled','<%=Session["CoBrowse"].ToString() %>');
    

提交回复
热议问题