Home Atom Json RSS

Reference

A collection of articles on various topics that interest me. Written mostly in order to document my own solutions to problems, and published in the hope that they may help others save some time.

2010

Custom View Engine for Localized Views with ASP.NET MVC Razor

This article describes how to localize ASP.NET MVC page views and partial views by providing separate Razor templates for each language. Used in combination with localization through resource files and metadata, this approach leads to a cleaner project structure and allows for localizing a web page without having to recompile. However, it comes at the cost of some duplicated markup.

~ Read

Custom Display and Editor Templates with ASP.NET MVC 3 Razor

Much has been written on how to create custom templates for ASP.NET MVC 2 and earlier versions, as well as the default MVC view engine. Customizing the default templates in MVC 3 using the Razor view engine is just as easy, but not exactly obvious if one doesn’t know where to start. This article provides some quick example code for replacing the default custom templates for Object view models.

~ Read