martes, 11 de febrero de 2014

C# Using tabs


To use tabs in C# use the TabContainer element from AjaxControlToolkit

Include AjaxControlToolkit

  1.  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.
<ajaxCTK:TabContainer ID="TabContainerUpdate" runat="server"
                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
<ajaxCTK:TabPanel ID="MsgApproveProject" runat="server"
                        HeaderText="Update Project"
                        Enabled="true"
                        ScrollBars="Auto"
                        OnDemandMode="Once">
                        <ContentTemplate>

/***   Tab section  ***/





                      </ContentTemplate>
</ajaxCTK:TabPanel>



 

No hay comentarios:

Publicar un comentario