i

ASP.Net A Complete Guide

Properties of Menu Control

Sr.No

Properties

Description

1

DataSourceID

Specifies the data source to be used.

2

Selectable

true/false. If true, this item selected.

3

ImageUrl

Specifies the image that will appears next to the menu item.

4

ImageToolTip

Specifies the tooltip text to display for image next to the item.

5

Target

it Specifies where to open the target location.

6

Text

Specifies the text to display in the menu.

7

Tooltip

Specifies the tooltip when you mouse over.

8

NavigateUrl

Specifies the target location.

Menu control rendered as Unordered List or List Items instead of an HTML table.

Below are the advantages when using the menu control:

  • Rendering will be very much faster than the HTML tables

  • Applying CSS styles will be easier

  • A number of lines of code will get reduced, surely that will decrease the page size.

 Example:

You need just to drag and drop the menu control, and it will generate the HTML for you.

When you run the program then it will generate the output like below: