To use tabs in C# use the TabContainer element from AjaxControlToolkit
Include AjaxControlToolkit
- Include in the Web.config file, inside the tag <system.web> the following code
<pages>
<controls>
<add tagPrefix="ajaxCTK" namespace="AjaxControlToolkit" assembly="AjaxControlToolkit"/>
</controls>
</pages>
Include TabContainer element
- First include TabContainer element that is the section where all the tabs will be displayed.
Height="800"
CssClass="ajax__tab_style">
</ajaxCTK:TabContainer>
- Second per each tab include the following code corresponding to each tab section, this code must be inside the TabContainer section code
HeaderText="Update Project"
Enabled="true"
ScrollBars="Auto"
OnDemandMode="Once">
<ContentTemplate>
/*** Tab section ***/
</ContentTemplate>
</ajaxCTK:TabPanel>
No hay comentarios:
Publicar un comentario