Is there a way to retrieve the ActiveTabIndex from TabContainer when a tab is selected by the user? I've attempted the following approach without success.
<script type="text/javascript">
function GetActiveTabIndex() {
var tc = document.getElementById("TabContainer1");
alert(tc.ActiveTabIndex);
}
</script>
<asp:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="0" Height="300px"
Width="300px" CssClass="MyTabStyle" OnClientActiveTabChanged="GetActiveTabIndex">
<asp:TabPanel runat="server" HeaderText="First" ID="TabPanel1">
<ContentTemplate>
<h1>
Tab 1
</h1>
</ContentTemplate>
</asp:TabPanel>
<asp:TabPanel ID="TabPanel2" runat="server" HeaderText="Second">
<ContentTemplate>
<h1>
Tab 2
</h1>
</ContentTemplate>
</asp:TabPanel>
</asp:TabContainer>