get property from code behind into aspx page

前端 未结 5 1347
野性不改
野性不改 2021-01-14 08:33

Is it possible to get the property(get; set; ) say Name from code behind(aspx.cs) file into jquery?

5条回答
  •  伪装坚强ぢ
    2021-01-14 08:33

    Yes, depending on your framework:

    
    

    You may run into encoding issues, so make sure you escape the value for javascript.

提交回复
热议问题