How to share a C# Integer variable with JavaScript

前端 未结 3 1630
死守一世寂寞
死守一世寂寞 2021-01-20 14:31

I want to share the currentTab variable which exists on the C# server side with JavaScript. Here is my code:

C#:

public         


        
3条回答
  •  被撕碎了的回忆
    2021-01-20 15:09

    You need to use some server control to send value back to the server (i.e. asp:HiddenField) or use query string to set the tab index there.

提交回复
热议问题