Working with Resources in .net

Jump to: navigation, search

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

Personal tools
Namespaces
Variants
Actions
Navigation
Categories
Toolbox