Skip to main content

ASPxPageControl.TabPages Property

Gets the collection of tabbed pages within the current PageControl.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v22.1.dll

NuGet Package: DevExpress.Web


public TabPageCollection TabPages { get; }

Property Value

Type Description

A TabPageCollection object representing the collection of tabbed pages.


The TabPages property provides access to a collection that contains all tabbed pages of the current page control. This collection provides standard means to manipulate (add or remove) page objects within the page control. A particular tabbed page can be accessed using index notation.


The complete sample project is available in the DevExpress Code Central database at E483.

         <dxtc:ASPxPageControl ID="ASPxPageControl1" runat="server" 
         ActiveTabIndex="0" ClientInstanceName="pageControl">
                 <dxtc:TabPage Text="Tab 1">
                         <dxw:ContentControl runat="server">
                          <dxe:ASPxCheckBox ID="ASPxCheckBox1" runat="server" Text="Show Tab 2">
                                 <ClientSideEvents CheckedChanged="function(s, e) {
                var tab = pageControl.GetTab(1);
                var isVisible = s.GetChecked();
                }" />
                 <dxtc:TabPage ClientVisible="False" Text="Tab 2">
                         <dxw:ContentControl runat="server">
                             <dxe:ASPxLabel ID="ASPxLabel1" runat="server" Text="Label on Tab 2">
See Also