A feature of ASP.NET MVC that i really like is that when you use the LabelFor extension method in a strongly-typed view, the LabelFor implementation will try to retrieve and use metadata for the property you're creating a label for. For instance: @Html.LabelFor(m => m.SomeProperty)
This will generate an HTML label for the SomeProperty property of your model. If you need localized views, you can annotate the property in your model like this: [Display(ResourceType = typeof(Resources), Name = "Res...
No comments yet, be the first one to post comment.