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.

 

 

 

 

 

 

 

Skip Navigation Links.
ScriptManager Class
ScriptManager Constructor
AllowCustomErrorsRedirect Property
AsyncPostBackError Event
AsyncPostBackErrorMessage Property
AsyncPostBackSourceElementID Property
AsyncPostBackTimeout Property
AuthenticationService Property
EnablePageMethods Property
EnablePartialRendering Property
EnableScriptGlobalization Property
EnableScriptLocalization Property
GetCurrent Method (page)
IsDebuggingEnabled Property
IsInAsyncPostBack Property
LoadPostData Method (postDataKey, postCollection)
LoadScriptsBeforeUI Property
OnAsyncPostBackError Method (e)
OnInit Method (e)
OnPreRender Method (e)
OnResolveScriptReference Method (e)
ProfileService Property
RaisePostDataChangedEvent Method
RegisterArrayDeclaration Method
RegisterArrayDeclaration Method (control, arrayName, arrayValue)
RegisterArrayDeclaration Method (page, arrayName, arrayValue)
RegisterAsyncPostBackControl Method (control)
RegisterClientScriptBlock Method
RegisterClientScriptBlock Method (control, type, key, script, addScriptTags)
RegisterClientScriptBlock Method (page, type, key, script, addScriptTags)
RegisterClientScriptInclude Method
RegisterClientScriptInclude Method (control, type, key, url)
RegisterClientScriptInclude Method (page, type, key, url)
RegisterClientScriptResource Method
RegisterClientScriptResource Method (control, type, resourceName)
RegisterClientScriptResource Method (page, type, resourceName)
RegisterDataItem Method
RegisterDataItem Method (control, dataItem)
RegisterDataItem Method (control, dataItem, isJsonSerialized)
RegisterDispose Method (control, disposeScript)
RegisterExpandoAttribute Method (control, controlId, attributeName, attributeValue, encode)
RegisterExtenderControl Method (extenderControl, targetControl)
RegisterHiddenField Method
RegisterHiddenField Method (control, hiddenFieldName, hiddenFieldInitialValue)
RegisterHiddenField Method (page, hiddenFieldName, hiddenFieldInitialValue)
RegisterOnSubmitStatement Method
RegisterOnSubmitStatement Method (control, type, key, script)
RegisterOnSubmitStatement Method (page, type, key, script)
RegisterPostBackControl Method (control)
RegisterScriptControl Method (scriptControl)
RegisterScriptDescriptors Method
RegisterScriptDescriptors Method (extenderControl)
RegisterScriptDescriptors Method (scriptControl)
RegisterStartupScript Method
RegisterStartupScript Method (control, type, key, script, addScriptTags)
RegisterStartupScript Method (page, type, key, script, addScriptTags)
Render Method (writer)
ResolveScriptReference Event
ScriptMode Property
ScriptPath Property
Scripts Property
Services Property
SetFocus Method
SetFocus Method (clientID)
SetFocus Method (control)
SupportsPartialRendering Property
Visible Property

Services Property

Gets a ServiceReferenceCollection object that contains a ServiceReference object for each Web service that Microsoft ASP.NET 2.0 AJAX Extensions expose on the client.

Syntax

CSharp

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

VisualBasic

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

ManagedCPlusPlus

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

JSharp

/** @property */

Value

Return Value

The ServiceReferenceCollection for the current ScriptManager instance.

Remarks

The ServiceReferenceCollection object that is returned by this property is a collection of ServiceReference objects, each of which represents a Web service that is registered with the page. Services can be defined in the ScriptManager control or in an associated ScriptManagerProxy control.

You can add services to the collection in markup by adding <asp:ServiceReference> nodes to a <Services> node inside the <asp:ScriptManager> instance on the page, as shown in the following example.

<asp:ScriptManager ID="SM1" runat="server">
  <Services>
    <asp:ServiceReference Path="Service.asmx" />
  </Services>
</asp:ScriptManager>

You can also programmatically add a ServiceReference object to the Services collection by using the Add(Q) method of the ServiceReferenceCollection class.

Services are registered with the ScriptManager during the page's PreRender life-cycle stage.

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