i create website project and create ClassLibrary, i want to use
MemoryStream transformStream = new MemoryStream(Resources.SiteMapTransform); MemoryStream siteMapXmlStream = new MemoryStream();
but it can not find SiteMapTransform? it only find resource files in App_GlobalResources, how can i fix it?
you can down load code at http://www.htdengineering.vn/EmbeddedResource.rar
thank for your help.
Nattudurai EswaramurthyPosted Aug 15, 2012, 11:21 AM
Embedding the resources in an assembly
To do this, follow these steps:Note This option is not available if you add the item directly to the Web site itself. Here is what you would see in such a situation:
You can only apply this option on resources that are included with class libraries (assemblies in their own right). Here is what you would see:
You need to use the namespace when you declare the resources as well as when you request the resources.
For example, you might use the following methods:
If this Post helpful, then plz click it as accepted answer