ScriptManager..::.ScriptPath Property Home
This page is specific to:.NET Framework Version:3.54.0
.NET Framework Class Library
ScriptManager..::.ScriptPath Property

Gets or sets the root path of the location that is used to build the paths to ASP.NET AJAX and custom script files.

Namespace:  System.Web.UI
Assembly:  System.Web.Extensions (in System.Web.Extensions.dll)
Syntax

'Usage

Dim instance As ScriptManager
Dim value As String

value = instance.ScriptPath

instance.ScriptPath = value

'Declaration

Public Property ScriptPath As String
<asp:ScriptManager ScriptPath="String" />

Property Value

Type: System..::.String
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 you 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 element on the page, but it can be set in code also.

If the path attribute or the Path property is set for a ScriptReference object in the Scripts collection, the path value overrides the ScriptPath value for that ScriptReference instance.

If no Path value is specified, the ScriptManager control searches the directory that is defined by the ScriptPath property and resolves script references by their Name or Assembly properties.

Platforms

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Version Information

.NET Framework

Supported in: 3.5
See Also

Reference

© 2009 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View