A Simple 2-Column Layout in Razor

Posted by: K. Scott Allen, on 22 Aug 2011 | View original | Bookmarked: 0 time(s)

2 column layouts are rather popular on the web, and there are 1,001 ways to make them work. The approach you choose really depends on the type of content you have, and how you want images and backgrounds to work. What I'll show is the Razor _Layout and CSS to achieve the following look: The Razor _Layout file can rely on partial views to handle each of the primary sections: top, navigation, sidebar, and footer. RenderBody will produce the primary content area. <!DOCTYPE html> <html> <head>...

Advertisement
Free Agile Project Management Tool from Telerik
TeamPulse Community Edition helps your team effectively capture requirements, manage project plans, assign and track work, and most importantly, be continually connected with each other.
Category: ASP.NET | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 626 | Hits: 61

Similar Posts

  • Programmatically Importing SharePoint Reusable Content more
  • Teaser: Telerik Reporting CrossTab Wizard more
  • Generate stunning ASP.NET/AJAX applications with Web Site Factory more
  • Service Bus in Azure more
  • Animation Hack Using Attached Properties in Silverlight more
  • WPF Release History : Q1 2009 (version 2009.1.312) more
  • EF Designer Bug Workaround for 0..1 Associations to Derived Types (Error Code 3034) more
  • In Love With Complexity more
  • Animation Hack Using Attached Properties in Silverlight more
  • Silverlight Release History : Q1 2009 (version 2009.1.312) more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD