Documentation for: ASP.NET Ajax Version 1.0

This documentation is for a previous version. For the current released version, see the ASP.NET Ajax documentation on MSDN.

 

 

 

 

 

 

 

Scripts Property

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

Syntax

CSharp

[DefaultValueAttribute(null)]
[CategoryAttribute("Behavior")]
[EditorAttribute("System.Web.UI.Design.CollectionEditorBase, System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", typeof(UITypeEditor))]
[PersistenceModeAttribute(PersistenceMode.InnerProperty)]
[MergablePropertyAttribute(false)]
public ScriptReferenceCollection Scripts { get; }

VisualBasic

<DefaultValueAttribute(Nothing)> _
<CategoryAttribute("Behavior")> _
<EditorAttribute("System.Web.UI.Design.CollectionEditorBase, System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", GetType())> _
<PersistenceModeAttribute(PersistenceMode.InnerProperty)> _
<MergablePropertyAttribute(False)> _
Public ReadOnly Property Scripts As ScriptReferenceCollection

ManagedCPlusPlus

[DefaultValueAttribute(nullptr)]
[CategoryAttribute(L"Behavior")]
[EditorAttribute(L"System.Web.UI.Design.CollectionEditorBase, System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", typeof())]
[PersistenceModeAttribute(PersistenceMode::InnerProperty)]
[MergablePropertyAttribute(false)]
public:
ScriptReferenceCollection^ Scripts {
	ScriptReferenceCollection^ get ();
}

JSharp

/** @property */

Value

Return Value

A ScriptReferenceCollection collection that contains ScriptReference objects for each script file that the ScriptManagerProxy control sends to the browser.

Remarks

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 <asp: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.

See Also

  • Scripts

Assembly: System.Web.Extensions (Module: System.Web.Extensions)