If i wanted to get message for ViewData from resource file, depending on the culture i set, how can i do this?
ViewData["messag开发者_如何学Goe"] = "ErrorMessage";
am i making sense
ViewData["message"] = Resources.ErrorMessage;
where Resources
is a resx file that you've added to your project. Visual Studio automatically generates strongly typed classes for each resource you add.
精彩评论