Question:
I have a web control project and a web project.
In the web control project I embed a
javascript file and declared it as a
WebResource in the AssemblyInfo.cs:
[assembly: System.Web.UI.WebResource("Namespace.Folder.MyScript.js", "text/javascript", PerformSubstitution = false)].
When I want to use it from the web project using:
this.Page.ClientScript.
RegisterClientScriptResource(this.GetType(), "Namespace.Folder.MyScript.js");
It does not work.
Why is the javascript file not loaded into the page?