See a lot of friends will not create a multi-tab page, specifically summed up the use of a very simple look at the know.
1. First download the Ajaxcontroltookit package placed in the bin directory, refreshing the solution.
2. Page introduction (. aspx)
Copy Code code as follows:
<%@ Register assembly= "AjaxControlToolkit" namespace= "AjaxControlToolkit" tagprefix= "ASP"%>
3. Control invocation (. aspx)
Copy Code code as follows:
<asp:tabcontainer id= "TC1" runat= "server" activetabindex= "0" width= "100%" >
<asp:tabpanel id= "TP1" runat= "Server" headertext= "tab 1" >
<ContentTemplate> Add page code here </ContentTemplate>
</asp:TabPanel>
<asp:tabpanel id= "TP2" runat= "Server" headertext= "tab 2" >
<ContentTemplate> Add page code here </ContentTemplate>
</asp:TabPanel>
</asp:TabContainer>
Activetabindex, as the name suggests, is the currently active tab index, starting from 0.