I want to localize Submit button in ASP.NET MVC application but don't know how to inerpolate it into value attribute.
<input type="submit" value="Resources.Global.Create" />
It prints Resources.Global.Create on form, but it should print localized value not variable name.
You're missing the magic Razor character (@):
<input type="submit" value="@Resources.Global.Create" />
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