I want to share the currentTab variable which exists on the C# server side with JavaScript. Here is my code:
currentTab
C#:
public
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.
asp:HiddenField