I am expanding my question a bit.
I have my App_LocalResources in my MVC web application (I don't have it in a separate dll).
I have my Model in a different assembly. In the model, I have 2 classes Country and City :
public class Country: MyContainer { public City city {get;set;} } public class City { public CityName {get;set;} } public class MyContainer { public Cid {get;set;} }
So, in my action method, I create and pass the country object as my view model.
And in the view, I use this:
@Html.LabelFor(mdl=>mdl.City.CityName) @Html.LabelFor(mdl=>mdl.Cid)
So this works well, and the label with the text is displayed in English.
But how can I change this so that it reads text from my resource files in my web application?
thinkmmk
source share