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:
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:
Comments have been disabled for this content.