asp.net: deploying local resources - is embedding possible?
Posted
by chris
on Stack Overflow
See other posts from Stack Overflow
or by chris
Published on 2009-05-22T14:44:37Z
Indexed on
2010/05/11
17:04 UTC
Read the original article
Hit count: 400
I have an asp.net app with some local resources. These resources are used in the aspx and code-behind files:
aspx:
<asp:TextBox ID="TextBox1" runat="server" Text="<%$ Resources:testTag %>" />
.vb:
TextBox1.Text = GetLocalResourceObject("testTag").ToString
If I deploy the .resx files with the app, there are no problems.
However, if I change the build action on the resx file to "Embedded Resource", the resources aren't available, even though they're in the DLL that gets built.
Is it possible to deploy resources in a DLL, or am I stuck with managing & deploying resx files on the server?
© Stack Overflow or respective owner