时间:2021-07-01 10:21:17 帮助过:71人阅读
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
3.控件调用(.aspx)
代码如下:
<asp:TabContainer ID="tc1" runat="server" ActiveTabIndex="0" Width="100%">
<asp:TabPanel ID="tp1" runat="server" HeaderText="选项卡1">
<ContentTemplate>此处添加页面代码</ContentTemplate>
</asp:TabPanel>
<asp:TabPanel ID="tp2" runat="server" HeaderText="选项卡2">
<ContentTemplate>此处添加页面代码</ContentTemplate>
</asp:TabPanel>
</asp:TabContainer>
ActiveTabIndex顾名思义是当前激活的选项卡索引,从0开始。