razor

Display templates (partial views) in MVC 3 using Razor

http://stackoverflow.com/questions/6365633/what-is-the-html-displayfor-s...

This is an excellent, easy way to have a consistent user interface. You can use display templates to default values, or give all the values of a specific type the same look and feel (or do both). For example, creating the view String.cshtml inside Views -> Shared -> DisplayTemplates will affect all strings that are rendered using:


@Html.DisplayFor()

Topics:

Subscribe to RSS - razor