Navigate through ASP.Net AjaxControllToolKit Tabs using button click

1.7k views Asked by At

I am using ASP.NET AjaxControllToolKit Tab Container , I have 9 tabs in it i want to switch to next tabs on asp:button click. I have a screen shot of my tabs . This is my sample Asp.Net ajax tab container

I try this C# code but it is not working .

 protected void Button1_Click(object sender, EventArgs e)
        {

            TabContainer1.ActiveTab = TabContainer1.Tabs[2];

        }

Please give me the right solution for navigation between tabs on button clicks.

1

There are 1 answers

0
Raza On BEST ANSWER

This code Work fine if you have enable AutoPostBack of Tab Container.

TabContainer1.ActiveTab = TabContainer1.Tabs[1];