ScriptManagerProxy.Scripts Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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)

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
Available since 3.5
Return to top