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:

3 Comments

Comments have been disabled for this content.