Horizontal menu as a Razor helper

Posted by: mikes web log, on 01 Feb 2012 | View original | Bookmarked: 0 time(s)

On the forums, someone was asking about creating a horizontal menu using Razor code in ASP.NET Web Pages. The technique of combining an unordered list (<ul> element) with CSS to create a horizontal layout, using <a> elements as the menu items, is a pretty well-known one; you can find examples here and here, not to mention in the Site.css file that comes with a lot of the Visual Studio web project templates.The actual Razor part is likewise not hard. Someone showed this code as a way to...

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: 361 | Hits: 50

Similar Posts

  • Horizontal Table for your reports more
  • SilverLight ListBox Selections or what’s with SelectionChanged Events? more
  • Customizing the SharePoint ECB with Javascript, Part 2 more
  • Building menus with OpenAjax events more
  • Unit Test Visual Studio Dialog Boxes with DialogBoxPurger more
  • Web.UI Navigation Controls and Web Services more
  • Searching for the "Holy Grail" of Menu Item Customization more
  • Web.UI Navigation Controls and Web Services more
  • Silverlight ListBox Selections or what’s with SelectionChanged Events? more
  • Implementing an identity provider and relying party with Zermatt and ASP.NET MVC 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