Вопрос

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.

Это было полезно?

Решение

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

TabContainer1.ActiveTab = TabContainer1.Tabs[1];
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top