I have an input button on an ASP.NET form, but I want the text displayed to come from a server side resource file.
The following syntax fails, and I can't enclose it in a literal because the input tag cannot contain any other tags:
<input id="btnX" type="button" disabled="disabled" value='<%$Resources:res,Button.Text%>' />
Any possible solutions?
Thanks :)
I would think apocalypse's answer should work:
<%= GetLocalResourceObject("Button.Text") %>
or
<%= GetGlobalResourceObject("res", "Button.Text") %>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With