I am currently building in Version 3.5 of the .Net framework and I have a resource (.resx) file that I am trying to access in a web application. I have exposed the .resx properties as public access modifiers and am able to access these properties in the controller files or other .cs files in the web app. My question is this: Is it possible to access the name/value pairs within my view page? I'd like to do something like this...
text="<%$ Resources: Namespace.ResourceFileName, NAME %>"
or some other similar method in the view page.
<%= Resources.<ResourceName>.<Property> %>
Expose the resource property you want to consume in the page as a protected page property. Then you can just do use "this.ResourceName"
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