Working with Resources in .net
Examples
Adding a file to be referenced by a web component
1 In your AssemblyInfo.cs file (I am using C#)
[assembly: System.Web.UI.WebResource("AspLib.WebControls.ComboBox.Combobox.js", "text/javascript")]
2 Mark the .js file as embedded resource -Select the .js file in solution explorer -In the properties window, choose "Embeded resource" in build action