Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ScriptManager.AjaxFrameworkMode Property

.NET Framework 4.6 and 4.5

Gets or sets a value that specifies how client scripts of the Microsoft Ajax client library will be included on the client.

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

public AjaxFrameworkMode AjaxFrameworkMode { get; set; }

Property Value

Type: System.Web.UI.AjaxFrameworkMode
An AjaxFrameworkMode enumeration value.

Use the AjaxFrameworkMode property to enable all Microsoft Ajax script files, to disable all Microsoft Ajax script files, or to explicitly include individual script files.

The following example shows how to set the AjaxFrameworkMode property to Explicit in order to indicate that scripts can be explicitly specified.

<asp:ScriptManager ID="sm1" AjaxFrameworkMode="Explicit" runat="server"> 
<Scripts> 
    <asp:ScriptReference Name="MicrosoftAjaxCore.js" /> 
    <asp:ScriptReference Name="MicrosoftAjaxComponentModel.js" />  
    <asp:ScriptReference Name="MicrosoftAjaxSerialization.js" /> 
    <asp:ScriptReference Name="MicrosoftAjaxNetwork.js" />     
</Scripts> 
</asp:ScriptManager>

.NET Framework

Supported in: 4.6, 4.5, 4
Show:
© 2015 Microsoft