asp.net-mvc-3razorviewengine

Default Content for Section in Razor


I want to have some default content for a section let suppose Footer. How can I do this.

Also, what if I want to render a partial view as the default content.

Thanks


Solution

  • Haacked blogged about this http://haacked.com/archive/2011/03/05/defining-default-content-for-a-razor-layout-section.aspx.