【发布时间】:2014-11-06 10:41:20
【问题描述】:
是否可以使用query string 打开Ajax Tab Container 的标签页。
类似于查询字符串是
localhost:81/dashboard.aspx?tab=0
localhost:81/dashboard.aspx?tab=1
localhost:81/dashboard.aspx?tab=3
我的代码是
<ajax:TabContainer ID="TabContainer2" runat="server" CssClass="MyTabStyle">
<ajax:TabPanel ID="TabPanel2" runat="server" TabIndex="0">
<headertemplate>
Overview
</headertemplate>
<contenttemplate>
</contenttemplate>
</ajax:TabPanel>
<ajax:TabPanel ID="tbpnluser1" runat="server" TabIndex="1">
<headertemplate>
Overview
</headertemplate>
<contenttemplate>
</contenttemplate>
</ajax:TabPanel>
</ajax:TabContainer>
请帮忙
【问题讨论】:
-
根据您的查询字符串设置选项卡容器的 ActiveTabIndex 属性。
标签: c# asp.net asp.net-ajax