TABSTRIP Element | TabStrip Class
Adds a TabStrip element to a ASP.NET Web Form.
Syntax
ASP <tagPrefix:TABSTRIP ... >
Possible Values
tagPrefix Required. The element prefix associated with the WebControls namespace (Microsoft.Web.UI.WebControls). A TagPrefix is defined using the directive.
Remarks
The TabStrip control enables a menu-like selection of topics.
The TabStrip control is tightly connected to a second type of Windows Internet Explorer WebControls: the MULTIPAGE control. The MULTIPAGE control links a TAB to a page view.
The TabStrip control is declared within the
<TabStrip>
tags. Most style and property attributes of the TabStrip control are optional. By setting the style and/or property attributes, you can set the default styles and/or properties for all TABs and TABSEPARATORs. However, the style and/or property attributes can be overwritten within each TAB or TABSEPARATOR tags. This provides authors with greater flexibility when creating a personalized TabStrip control.A TABSTRIP can start and end with special TABSEPARATORs to indicate the beginning and end of the TABSTRIP. You can also use the TABSEPARATOR element to separate TABs on the TABSTRIP.
This element is a block element.
This element requires a closing tag.
Members Table
The following table lists the members exposed by the TabStrip object.
Attribute Property Description AUTOPOSTBACK AutoPostBack Sets or retrieves a value that indicates whether or not the control posts back to the server each time a user interacts with the control. DEFAULTIMAGEURL DefaultImageUrl Sets or retrieves the URL of the image as default for all inactive elements. DEFAULTSTYLE DefaultStyle Sets or retrieves a value that indicates the default style for the element. Items Retrieves the collection of Items in the control. ORIENTATION Orientation Sets or retrieves a value that indicates the alignment of the object within the document. SELECTEDINDEX SelectedIndex Sets or retrieves a value that indicates the index of the selected object. SEPDEFAULTIMAGEURL SepDefaultImageUrl Sets or retrieves a value that indicates the URL of the image as default for all inactive separators. SEPDEFAULTSTYLE SepDefaultStyle Sets or retrieves a value that indicates the default style for all inactive separators. SEPHOVERIMAGEURL SepHoverImageUrl Sets or retrieves a value that indicates the URL of the image for the TABSTRIP element when the user hovers the mouse pointer over it. SEPHOVERSTYLE SepHoverStyle Sets or retrieves a value that indicates the style of the TABSTRIP element when the user hovers the mouse pointer over it. SEPSELECTEDIMAGEURL SepSelectedImageUrl Sets or retrieves a value that indicates the URL of the image for the active separators left
andright
(above
andbelow
) of the active TAB.SEPSELECTEDSTYLE SepSelectedStyle Sets or retrieves a value that indicates the style for the active separators left
andright
(above
andbelow
) of the active TAB.TABDEFAULTSTYLE TabDefaultStyle Sets or retrieves a value that indicates the default style for all inactive tabs. TABHOVERSTYLE TabHoverStyle Sets or retrieves a value that indicates the style of the TABSTRIP element when the user hovers the mouse pointer over it. TABSELECTEDSTYLE TabSelectedStyle Sets or retrieves a value that defines the style for the active TAB. TARGET Target Retrieves a value that indicates the MultiPage object based on the TargetID. TARGETID TargetID Enables you to automatically link tabs to a MULTIPAGE control.
Element Object Description TAB Tab Adds a Tab element to a ASP.NET Web Form. TABSEPARATOR TabSeparator Adds a TabSeparator element to a ASP.NET Web Form.
Event Description onselectedindexchange Fires when selectedIndex changes for MULTIPAGE or TABSTRIP.
Class Information
Namespace Microsoft.Web.UI.WebControls
See Also
Internet Explorer WebControls, About the TabStrip WebControl