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...