Share via


DEFAULTSTYLE Attribute | DefaultStyle Property

Sets or retrieves a value that indicates the default style for the element.

Syntax

ASP <tagPrefix:ELEMENT DEFAULTSTYLE = sDefaultStyle ... >
Script [ sDefaultStyle = ] object.DefaultStyle

Possible Values

tagPrefix Required. The element prefix associated with the WebControls namespace (Microsoft.Web.UI.WebControls). A TagPrefix is defined using the directive.
sDefaultStyle CssCollection that specifies one or more Cascading Style Sheets (CSS) attribute/value pairs.

The property is read/write. The property has no default value.

Remarks

The DEFAULTSTYLE attribute of a TAB element will overwrite the TABDEFAULTSTYLE attribute of a TABSTRIP element.

The DEFAULTSTYLE attribute of a TABSEPARATOR element will overwrite the SEPDEFAULTSTYLE attribute of a TABSTRIP element.

Applies To

TAB, TABSEPARATOR, TABSTRIP, TOOLBAR, TOOLBARBUTTON, TOOLBARCHECKBUTTON, TOOLBARCHECKGROUP, TOOLBARDROPDOWNLIST, TOOLBARLABEL, TOOLBARSEPARATOR, TOOLBARTEXTBOX, TREENODE, TREENODETYPE, TREEVIEW

See Also

CssCollection, Internet Explorer WebControls, About the TabStrip WebControl, About the Toolbar WebControl, About the TreeView WebControl