Share via


DEFAULTIMAGEURL Attribute | DefaultImageUrl Property

Sets or retrieves the URL of the image as default for all inactive elements.

Syntax

ASP <tagPrefix:ELEMENT DEFAULTIMAGEURL = sDefaultImageURL ... >
Script [ sDefaultImageURL = ] object.DefaultImageUrl

Possible Values

tagPrefix Required. The element prefix associated with the WebControls namespace (Microsoft.Web.UI.WebControls). A TagPrefix is defined using the directive.
sDefaultImageURL System.String that specifies or receives the URL of the image to be displayed.

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

Remarks

The DEFAULTIMAGEURL attribute of a TABSEPARATOR element will overwrite the SEPDEFAULTIMAGEURL attribute of a TABSTRIP element.

Example

In this example, the TABSTRIP element declares the default image location for the TABSEPARATOR elements using the SEPDEFAULTIMAGEURL attribute. Because the first and second TABSEPARATOR elements have a DEFAULTIMAGEURL attribute, only the image location of the third TABSEPARATOR is defined in the TABSTRIP element.


<?XML:NAMESPACE PREFIX="myTab" />
<?import namespace="myTab" implementation="tabstrip.htc" />
<myTab:tabstrip id="MainTabs" runat="server" SepDefaultImageUrl="images/default.gif">
    <myTab:tabseparator DefaultImageUrl="images/some_image.gif"/>
    <myTab:tab />
    <myTab:tabseparator DefaultImageUrl="images/some_image.gif"/>
    <myTab:tab />
    <myTab:tabseparator />
</myTab:tabstrip>

Applies To

TAB, TabItem, TABSEPARATOR, TABSTRIP

See Also

Internet Explorer WebControls, About the TabStrip WebControl