You need to give the fully qualified name of the resource, which
will include the default namespace of your project followed by the
relative path to the file with directory slashes replaced by full
stops. You will also need to provide a content type that will be sent
to the browser:
[assembly: WebResourceAttribute("Examples.WebResource.Images.Elephant.jpg", "image/jpg")]
If you're unsure about what the fully qualified name of your
resource is, you can add some code to one of the class files in the
project that will write the name of each embedded resource in the
assembly to the debug output stream when the code is run:
string[] resources =
this.GetType().Assembly.GetManifestResourceNames();
foreach (string resourceName in resources)
{
Debug.WriteLine(resourceName);
}
this content was copied from http://www.helephant.com/Article.aspx?ID=262