Export (0) Print
Expand All

ScriptManager.AuthenticationService Property

Gets the AuthenticationServiceManager object that is associated with the current ScriptManager instance.

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

'Declaration
<PersistenceModeAttribute(PersistenceMode.InnerProperty)> _
Public ReadOnly Property AuthenticationService As AuthenticationServiceManager

Property Value

Type: System.Web.UI.AuthenticationServiceManager
The AuthenticationServiceManager object for the current ScriptManager instance.

The AuthenticationServiceManager object that is returned by this property represents the authentication service that is registered with the page. The authentication service can be defined in the ScriptManager control or in an associated ScriptManagerProxy control.

You can use the ASP.NET authentication service or use a custom authentication service. You can add the custom service in markup by including an AuthenticationService element inside the asp:ScriptManager element on the page, as shown in the following example.

<asp:ScriptManager ID="SM1" runat="server">
  <AuthenticationService Path="MyAuthenticationService.asmx" />
</asp:ScriptManager>

You can also programmatically configure the AuthenticationServiceManager object. Services are registered with the ScriptManager control during the page's PreRender life-cycle stage.

.NET Framework

Supported in: 4.5, 4, 3.5

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

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

Show:
© 2014 Microsoft