Menu Control Example
Example Summary and Logic
Binding a Menu control to a SiteMapDataSource is an elegant and simple way to create a menu for a web site. By default,
ASP.NET uses <table> tags to render the Menu. A pure CSS strategy
using nested <ul> tags has been gaining popularity in recent years.
A control adapter can "teach" the Menu how to produce this kind of CSS friendly HTML without sacrificing the power and flexibility
of the original Menu control. For example, the root nodes of the menu can be laid out vertically or horizontally.
You can learn more about visualizing hierarchical data by studying the TreeView example, too.
This kit's tutorial includes an additional Menu example.
Working Example