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

# re: Wrap Your EditorTemplates

Friday, September 23, 2011 12:09 PM by Chris Moss

Do you realize that it's been over two years since your last post?

He's Alive!!!

# re: Wrap Your EditorTemplates

Monday, September 26, 2011 5:07 AM by miu miu

Ich mag diesen Stil, und wollen mehr Informationen auf dieser Website zu lernen, aktualisieren Sie bitte, ich werde weiterhin auf dieser Website Fokus

# re: Wrap Your EditorTemplates

Friday, September 30, 2011 10:22 AM by mxmissile

@chris I know, I definitely need to start blogging more. How are you doing man?

Leave a Comment

(required) 
(required) 
(optional)
(required)