ClientScriptItem.Source Property

Gets the src attribute value for the client script element.

Namespace: System.Web.UI.Design
Assembly: System.Design (in system.design.dll)

public:
property String^ Source {
	String^ get ();
}
/** @property */
public String get_Source ()

public function get Source () : String

Not applicable.

Property Value

The path to the source file specified for the src attribute in the script element.

The Source property specifies an external source location for the client script contents. Typically, the script statements for a script element are specified using either the Text or Source property.

If the Source property is a null reference (Nothing in Visual Basic) or an empty string (""), the src attribute is not set in the script element.

The Source property is initialized by the ClientScriptItem.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show: