is it possible to use resource files (.resx) in ASP.NET for a HTML controls ?
-
How do you mean? Can you post an example of what you would like to do?Oded– Oded2010-08-11 07:43:25 +00:00Commented Aug 11, 2010 at 7:43
-
for ASP controls I assign meta:resourcekey="CompanyNameTb", but is it possible to do the same with a HTML tag, e.g. <a></a> ?Tony– Tony2010-08-11 07:47:11 +00:00Commented Aug 11, 2010 at 7:47
Add a comment
|
1 Answer
You neeed to add runat="server" to the control.
<input type="button" value="Press Me" runat="server"
meta:resourcekey="PressMeButtonResources"/>
Alternatively, you could retrieve resource values programmatically. Here is a an MSDN Article on how to do that. Then you could generate content on the Server side and apply it to your page.
1 Comment
A Programmer
is it possible without adding runat="server" to page?