Wrap Your EditorTemplates

A really cool feature in Razor is the EditorTemplate's ability to use Layouts. Just like regular Views, you can apply the a Layout. For example, a regular Textbox template:

Would then be used with _Layout.cshtml:

Published Friday, September 23, 2011 8:51 AM by mxmissile
Filed under: , , , ,

Comments

No Comments