Danny Chen [MSFT] has posted some excellent sample code for those of us looking to use the new ASP.NET 2.0 menu control but that really hate the excessive HTML that this control renders. Danny’s post explains how to use a simple unordered list <UL> and the “template” capabilities of the menu control to create a very cool menu structure without tables. This isn’t the approach that I took but Danny’s code is very clean, easy to understand and flexible.
Now, why didn’t this get implemented in the first place instead of the (extremely ugly) nested table structure that the menu control currently emits? Maybe we should all ping Scott Guthrie and request this be included in the VS2005 SP1 bits.