Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
345
Identifying Tab from User Control's code behind page?
posted

I have a WebTab control on MyPage.aspx. The WebTab control contains two tabs. The same User Control is used on both  tabs. How can I identify which tab I'm on from within the User Control's code behind page? (MyUserControl.ascx.vb) - I need to know whether I'm on Tab1 or Tab2.

Here's the markup for the WebTab -

<ig:WebTab ID="WebTab1" runat="server" Height="600px" SelectedIndex="1" Width="848px">
    <tabs>
        <ig:ContentTabItem runat="server" Text="Tab1"
            UserControlUrl="MyUserControl.ascx">
        </ig:ContentTabItem>
        <ig:ContentTabItem runat="server" Text="Tab2"
            UserControlUrl="MyUserControl.ascx">
        </ig:ContentTabItem>
    </tabs>
</ig:WebTab>

Thanks - Ed