Export (0) Print
Expand All

ScriptManager.ScriptResourceMapping Property

Gets a ScriptResourceMapping object.

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

static member ScriptResourceMapping : ScriptResourceMapping with get

The static ScriptResourceMapping property returns a ScriptResourceMapping object that can contain a collection of mappings that represent the location of the script resource (script redirection). This collection of mappings can be mapped based on names or name/assembly pairs, and it can point to a ScriptResourceDefinition object.

The following examples shows how to add a ScriptResourceDefinition object that can be referenced by a ScriptManager object. Add the following code to the Global.asax file in the Application_Start event.

No code example is currently available or this language may not be supported.

In the markup for an ASP.NET Web Forms page (.aspx file), add the following markup inside the form element and before any elements or code that uses jQuery script.

<asp:ScriptManager ID="sm1" runat="server">
  <Scripts>
    <asp:ScriptReference Name="jquery"/>
  </Scripts>
</asp:ScriptManager>

.NET Framework

Supported in: 4.5, 4

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