Gets or sets the root path to the location that is used to build the paths to Microsoft ASP.NET 2.0 AJAX Extensions and custom script files.
Syntax
CSharp
VisualBasic
ManagedCPlusPlus
JSharp
/** @property */
/** @property */
Value
Return Value
A String object that represents the location where script files are stored. The default value is an empty string, which is interpreted as a relative path.
Remarks
The ScriptPath property enables the page developer to specify an absolute, relative, or application-relative URL for all script blocks on the page. This includes custom and third-party script blocks that are registered with the current ScriptManager instance. The ScriptPath property is typically set declaratively as an attribute of a <ScriptManager> object on the page, but it can be set in code as well.
If the path attribute or the Path property is set on a specific ScriptReference in the Scripts collection, it overrides the ScriptPath value for that ScriptReference instance.
If there is no Path specified, the ScriptManager control searches the directory that is defined by the ScriptPath property and resolves script references by their Name or Assembly properties.
Assembly: System.Web.Extensions (Module: System.Web.Extensions)