- WebResource.axd is an HTTP Handler, part of the .NET Framework
- The main task is getting an embedded resource out of a DLL and returning its content
How to embedding an External Resource
- Right click the file in the project
- set the file's Build Action to "Embedded Resource"
Accessing the Embedded Assembly through a URL
- Page.ClientScript.GetWebResourceUrl(this.GetType(), "filename.js")
- Using the above code you can register it in the client script (Page.ClientScript.RegisterClientScriptInclude)
- <script src="/TestWebsite/WebResource.axd?d=xlz&t=987" type="text/javascript">