Export (0) Print
Expand All

ScriptManagerProxy.Scripts Property

Gets a ScriptReferenceCollection object that contains a ScriptReference object for each script file that is explicitly registered with the ScriptManagerProxy control.

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

[PersistenceModeAttribute(PersistenceMode.InnerProperty)]
public ScriptReferenceCollection Scripts { get; }

Property Value

Type: System.Web.UI.ScriptReferenceCollection
A collection of ScriptReference objects for each script file that the ScriptManagerProxy control sends to the browser.

The Scripts collection enables you to add script references to any scripts that are already registered with the ScriptManager control.

You can add script references to the Scripts collection declaratively by using the ScriptReference element. You can add script references programmatically by adding ScriptReference objects to the Scripts collection.

If a script is already registered with the ScriptManagerProxy or ScriptManager control, the script is not registered again.

.NET Framework

Supported in: 4, 3.5

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Community Additions

ADD
Show:
© 2014 Microsoft