2

Is there anything that replaces the <%$ %> syntax from plain ASP.NET Web Forms?

With the web forms engine it is possible to access global resources with the following syntax:

<%$ Resources: Homepage.Labels.Title %>

It is also possible to create and register custom expression builders.

I'm asking if this is also supported by the Razor engine.

David Gardiner
  • 16,892
  • 20
  • 80
  • 117
Mel Gerats
  • 2,234
  • 1
  • 16
  • 33
  • aah, difficult in understanding what u want, but have a look at this http://msdn.microsoft.com/en-us/vs2010trainingcourse_aspnetmvc3razor.aspx – Yasser Shaikh Aug 07 '12 at 17:53

1 Answers1

0

Haven't touched Razor yet but maybe this will get you going

@Resources.General.Hello syntax: Resources.[ResourceName].[Property]

from: How to access global resources in a view using asp.net mvc razor

Hope this helps

Community
  • 1
  • 1
buckley
  • 13,690
  • 3
  • 53
  • 61