Asp.net_多选项卡页面的创建
1.首先下载ajaxcontroltookit包放置在bin目录下,刷新解决方案。
2.页面引入(.x)
[csharp]
<%@ register assembly="ajaxcontroltoolkit" namespace="ajaxcontroltoolkit" tagprefix="asp" %>
<%@ register assembly="ajaxcontroltoolkit" namespace="ajaxcontroltoolkit" tagprefix="asp" %>
3.控件调用(.aspx)
[csharp]
<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>
<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开始。
【end】
下一篇: Hibernate