aspxtreme

Tab Class

Microsoft.Web.UI.WebControls Namespace


.NET Framework version 2.0

Defines a tab in a TabStrip control.

Tab Class Members

Collapse   Constructors

Visibility Constructor Parameters
public Tab ( )

Collapse   Properties

Visibility Name Value Type Accessibility
public Target PageView [ Get ]
public TargetID String [ Get , Set ]

Collapse   Methods

Visibility Name Parameters Return Type
protected RenderImage ( HtmlTextWriter writer , String imageUrl ) Void
protected RenderText ( HtmlTextWriter writer , String text ) Void
protected WriteItemAttributes ( HtmlTextWriter writer ) Void

Remarks

The Tab control serves as a menu element used for navigation in a TabStrip control.

NOTE: A Tab control can only be declared as a child element of a TabStrip control.

The Tab control derives from the base TabItem class and as such inherits all properties of that class.

A Tab can render as an image by setting any of the following properties.

The TabDefaultStyle attribute of the TabStrip element defines the default image for all Tab elements which do not have a DefaultImageUrl or DefaultStyle attribute set.

The DefaultImageUrl or DefaultStyle settings of a Tab overwrites the value set for the TabDefaultStyle of the TabStrip.

When the TabStrip in which the Tab belongs to is used in conjunction with the MultiPage control, the Tab elements are linked to the PageView controls of the MultiPage in the order of appearance in the document structure if the TargetID attribute of the TabStrip is set to the ID of the MultiPage.

If there are more Tab elements than Tab elements, the tabs with no corresponding tab views can be activated, but the TabStrip will not change the currently selected Tab.

Example

Simple Image-Based TabStrip
Run Sample | View Source
Using the TabStrip with the MultiPage Control
Run Sample | View Source
See Also

TabStrip Class   TabSeparator Class



Books and more ...


Suggested Reading

Need a break ?



Previous page Back to top Next page

Check out related books at Amazon

© 2000-2008 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support aspxtreme