The JavaScriptResourceHandler provides the ability to embed ASP.NET server resources into client pages via script includes that contain objects with properties for each resource id.

To use the handler you can use the JavaScriptResourceHandler.RegisterLocalJavaScriptResources or RegistierGlobalJavaScriptResources methods. The first step is to register the handler in web.config.

To register in IIS 7:

<system.webServer> <handlers> <add name="JavaScriptResourceHandler" verb="GET" path="JavascriptResourceHandler.axd" type="Westwind.Globalization.JavaScriptResourceHandler,Westwind.Globalization"/> </handlers> </system.webServer>

To register in previous versions:

<system.web> <httpHandlers> <add name="JavaScriptResourceHandler" verb="GET" path="JavascriptResourceHandler.axd" type="Westwind.Globalization.JavaScriptResourceHandler,Westwind.Globalization"/> </httpHandlers> </system.web>