Create an Asp.net _ multi-tab page

Source: Internet
Author: User

I have read a lot of friends who have not yet created pages with multiple tabs. I have summarized the usage here. It's easy to understand. 1. Download The AjaxControlTookit package and place it in the Bin directory to refresh the solution. 2. page Introduction (. aspx) [csharp] <% @ Register Assembly = "AjaxControlToolkit" Namespace = "AjaxControlToolkit" TagPrefix = "asp" %> <% @ Register Assembly = "AjaxControlToolkit" Namespace = "AjaxControlToolkit" TagPrefix = "asp" %> 3. control call (. aspx) [csharp] <asp: TabContainer ID = "tc1" runat = "server" ActiveTabIndex = "0" Width = "100%"> <asp: tabPanel ID = "tp1" runat = "server" HeaderText = "Tab 1"> <ContentTemplate> add page Code </ContentTem Plate> </asp: TabPanel> <asp: tabPanel ID = "tp2" runat = "server" HeaderText = "Tab 2"> <ContentTemplate> add page Code </ContentTemplate> </asp: TabPanel> </asp: tabContainer> <asp: TabContainer ID = "tc1" runat = "server" ActiveTabIndex = "0" Width = "100%"> <asp: tabPanel ID = "tp1" runat = "server" HeaderText = "Tab 1"> <ContentTemplate> add page Code </ContentTemplate> </asp: TabPanel> <asp: tabPanel ID = "tp2" runat = "server" HeaderText = "Tab 2"> <ContentTemplate> Add the Page code here </ContentTemplate> </asp: TabPanel> </asp: TabContainer> ActiveTabIndex is the currently activated tab index as the name suggests, starts from 0. [End]

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.