Home ASP.NET MVC localization of separated model
Reply: 0

ASP.NET MVC localization of separated model

user614
1#
user614 Published in June 18, 2018, 8:47 pm

I try to localize properties of my model which is separated dll in my asp.net mvc project. I use DisplayAttribute for this:

[Display(Name = "InputDate", ResourceType = typeof(Resources.Resource))]
[DataType(DataType.Date)]
public DateTime? DateStart { get; set; }

Resource files are created in model project and have public modifier.

When I use model with this property in view I see InputDate instead of value of this resource key. I think I didn't take into account something related with model assembly.

Thank you!

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.315814 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO