Skip to main content
Tab

TabPage Class

Defines an individual tab page.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web

#Declaration

public class TabPage :
    TabBase

#Remarks

The TabPage class contains the settings which define an individual tabbed page within the ASPxPageControl. The tab pages are used to display other controls. They provide a client area to which visual elements can be added. A collection of the page’s child elements can be accessed via the ContentControlCollectionItem.Controls property.

Each page has a header which can display an image and text. An end user can click the page header to switch between the pages in a page control. Note that only one tab page is visible at a time.

View Example: Page Control for ASP.NET Web Forms - How to create a wizard interface

All the tab pages are stored in the page control’s ASPxPageControl.TabPages collection. Individual pages can be accessed using index notation.

The tab page’s visibility and position are specified by its TabBase.Visible and TabBase.VisibleIndex properties. The TabBase.Enabled property specifies whether the page can be activated. A disabled page cannot be activated by an end user or via code.Its header uses the style settings specified via the ASPxWebControl.DisabledStyle property.

By default, the appearance of all the tab pages is specified by the page control’s style properties. In order to define custom appearance settings for individual pages, the page level’s style properties should be used.

Note that the TabPage class has a client-side equivalent - an object of the ASPxClientTab type.

See Also