tags:

views:

18

answers:

1

Hi, is it possible to use resource files (.resx) in ASP.NET for a HTML controls ?

+1  A: 

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.

Daniel Dyson