How to create and use asp.net multi tab pages
- 2020-05-24 05:21:44
- OfStack
Read a lot of friends will not create a multi-tab page, specifically summed up the use of 1, very simple 1 will know.
1. First download the AjaxControlTookit package, place it in the Bin directory, and refresh the solution.
2. Page introduction (.aspx)
3. Control call (.aspx)
ActiveTabIndex, as the name implies, is the currently active TAB index, starting at 0.
1. First download the AjaxControlTookit package, place it in the Bin directory, and refresh the solution.
2. Page introduction (.aspx)
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
3. Control call (.aspx)
<asp:TabContainer ID="tc1" runat="server" ActiveTabIndex="0" Width="100%">
<asp:TabPanel ID="tp1" runat="server" HeaderText=" TAB 1">
<ContentTemplate> Add the page code here </ContentTemplate>
</asp:TabPanel>
<asp:TabPanel ID="tp2" runat="server" HeaderText=" TAB 2">
<ContentTemplate> Add the page code here </ContentTemplate>
</asp:TabPanel>
</asp:TabContainer>
ActiveTabIndex, as the name implies, is the currently active TAB index, starting at 0.