asp.net.ph

Skip Navigation Links

CODEBASE Attribute | codeBase Property

Language References


Specifies the base path used in the implementation of an APPLET or OBJECT element.

Syntax


Inline <element CODEBASE = strUrl [ #version=a,b,c,d ] ... >
Script [ strUrl = ] object.codeBase

Possible Values


sUrl URL from which the component should be downloaded.
a High-order word of the major version of the component available at the specified URL.
b Low-order word of the major version of the component available at the specified URL.
c High-order word of the minor version of the component available at the specified URL.
d Low-order word of the minor version of the component available at the specified URL.
-1,-1,-1,-1 Values for a,b,c,d indicating that the component should be downloaded from the server if the release date is later than the installation date on the client machine. If the component is installed on the client machine, and the release date is the same or earlier than the installation date, only an http header transaction occurs.

The property is read-only with no default value.

Remarks

This attribute is used to retrieve the URL that references where to find the implementation of the object. Similar to the BASE element used for the HTML document itself, it is used to resolve relative URIs specified by the classid, data, and archive attributes. When absent, its default value is the base URI of the current document.

Applets do not support versioning information supplied as part of the URL.

Example

The code below specifies the download location for the Common Dialog control using the CODEBASE attribute.

<object id="CommonDialog1" width=32 height=32
 classid="CLSID:F9043C85-F6F2-101A-A3C9-08002B2F49FB"
 codebase=
  "http://activex.microsoft.com/controls/comdlg32.cab
  #version=1,0,0,0">
</object>
Applies To

APPLET, OBJECT

See Also

Specifying FileVersion and #Version for Component Download



© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

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