I have to mix aspx and MVC in one app, and I want to use Resources files in aspx too.

I made one Resource in namespace Resources with the class Reporting.

In aspx I want to load the resource that I've saved and compiled under the key Unit. In classic Razor page, I would simply use @Resource.Reporting.Unit but here I can't and that is what I've tried:

<asp:Label ID="Label3" runat="server" Text="<%$ Resources:Resources.Reporting, Unit %>"></asp:Label>

but it gives me compilation error because Unit not found

Related posts

Recent Viewed