How to manage the Menu control appearance in ASP.NET

You can manage the Menu control appearance by using styles provided by it. Like the TreeView, the Menu derives two custom classes from the Style base class – MenuStyle and MenuItemStyle. These styles add spacing properties ItemSpacing, HorizontalPadding and VerticalPadding. Because there is no ImageUrl property, you cannot set menu item images through the […]

How to use the Menu navigation control in ASP.NET in VB.NET

The Menu control like the TreeView control supports hierarchical data. You can bind the Menu to a data source, or you can fill it by hand (declaratively or programmatically) using MenuItem objects. The MenuItem objects don’t support check boxes and you can’t set programmatically their expanded/collapsed state. The next table lists MenuItem properties you […]

How to use the Menu navigation control in ASP.NET in C#

The Menu control like the TreeView control supports hierarchical data. You can bind the Menu to a data source, or you can fill it by hand (declaratively or programmatically) using MenuItem objects. The MenuItem objects don’t support check boxes and you can’t set programmatically their expanded/collapsed state. The next table lists MenuItem properties you […]

How to use the SiteMapPath navigation control in ASP.NET

This article describes the third navigation control you can use in your project. This control is named SiteMapPath. You can find more information about two other controls from the article: How to bind a site map to the TreeView and Menu navigation controls in ASP.NET. The SiteMapPath control provides breadcrumb navigation, which means it shows the […]

How to bind a site map to the TreeView and Menu navigation controls in ASP.NET

If you have a Web.sitemap file you’re ready to use it in a page.   Note: How to define a site map in ASP.NET will teach you how to create it. The easiest way to implement your navigation is to use master pages. You can define the navigation controls as a part of a […]

Recommended ASP.NET Examples