且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

按钮单击时更改选项卡容器

更新时间:2022-12-04 17:27:08

您可以编写以下代码....





MainTab。 ActiveTab = MainTab.Tabs(1)

tab_two.Enabled = True





这是VB代码。 。在MainTab中是你的TabContainer id,(1)是你的索引。这是标签2 ... tab_two是你的TabPanel id



我认为这对你有用..因为这段代码对我有用。



我正在使用ajax工具包。
You can write following code....


MainTab.ActiveTab = MainTab.Tabs(1)
tab_two.Enabled = True


This is VB code.. in that MainTab is your TabContainer id and (1) is your index. that is tab 2... tab_two is your TabPanel id

I think this will work for u..because this code is working for me.

I am using ajax toolkit for that.