Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8694917
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T00:54:10+00:00 2026-06-13T00:54:10+00:00

I have an ajax control toolkit TabContainer . The active tab is controlled using

  • 0

I have an ajax control toolkit TabContainer. The active tab is controlled using c# in the following manner below. I have many tabs on my tabcontainer.

Is it possible to switch tabs by referencing the tab ID in C# as opposed to the number of the tab?

c#

TabContainerMain.ActiveTabIndex = 5;

HTML

<asp:TabContainer ID="TabContainerMain" runat="server" ActiveTabIndex="4" Width="100%"
    Height="100%" CssClass="" ViewStateMode="Enabled">
    <asp:TabPanel runat="server" HeaderText="Tab_Monitor" ID="Tab_Monitor">
    </asp:TabPanel>
    <asp:TabPanel ID="Tab_Remove_Item" runat="server" HeaderText="Tab_Remove_Item">
        <ContentTemplate>
            <div class="TabControls">
                <p>
                    Howdy, I'm in Section Tab_Remove_Item .</p>
            </div>
            <div class="TabsAction">
            </div>
        </ContentTemplate>
    </asp:TabPanel>
    <asp:TabPanel ID="Tab_2nd_Sign_System" runat="server" HeaderText="Tab_2nd_Sign_System">
        <ContentTemplate>
            <div class="TabControls">
                <p>
                    Howdy, I'm in Section Tab_2nd_Sign_System .</p>
            </div>
            <div class="TabsAction">
            </div>
        </ContentTemplate>
    </asp:TabPanel>
    <asp:TabPanel ID="Tab_Configure_Device" runat="server" HeaderText="Tab_Configure_Device">
        <ContentTemplate>
            <div class="TabControls">
                <p>
                    Howdy, I'm in Section Tab_Configure_Device .</p>
            </div>
            <div class="TabsAction">
            </div>
        </ContentTemplate>
    </asp:TabPanel>
</asp:TabContainer>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T00:54:12+00:00Added an answer on June 13, 2026 at 12:54 am

    Yes, you can use the ActiveTab property. For example:

    get

    if(TabContainerMain.ActiveTab == this.Tab_Remove_Item)
    {
        // ...
    }
    

    set

    TabContainerMain.ActiveTab = this.Tab_2nd_Sign_System;
    

    If you only have the ID as string, you can use LINQ (or a loop) to get the reference:

    String tabPanelID = "Tab_Remove_Item";
    TabContainerMain.ActiveTab = TabContainerMain.Tabs
        .Cast<AjaxControlToolkit.TabPanel>()
        .First(t => t.ID == tabPanelID);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an ajax toolkit TabContainer control on my page with a couple tabs.
I have an ASP.NET page that uses the ASP.NET Ajax Control Toolkit TabContainer .
I have an ASP.NET page using the AJAX control toolkit for some controls. A
I have installed the AJAX Control Toolkit following the included instructions and I'm trying
I have encountered a slightly bizarre bug while using the ajax control toolkit TabPanel.
I'm using AJAX Control Toolkit with Visual Studio 2005. I don't have the vs
I am using Ajax Control Toolkit 3.5. I have a form like this: <body>
I have an Ajax Control Toolkit Tab container, and each TabPanel contains a GridView.
I have a question. Is it possible to work with AJAX Control Toolkit in
I have an ASP.net page. That has an Ajax Toolkit Tab Control. That has

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.