I want to share the currentTab variable which exists on the C# server side with JavaScript. Here is my code:
currentTab
C#:
public
Have a server side hidden field to hold this piece of information.
You can access the field through javascript and as a server side control the value will be available server side.