문제

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