Text version of the video
Healthy diet is very important both for the body and mind. If you like Aarvi Kitchen recipes, please support by sharing, subscribing and liking our YouTube channel. Hope you can help.
All ASP .NET Text Articles
All ASP .NET Slides
All Dot Net and SQL Server Tutorials in English
All Dot Net and SQL Server Tutorials in Arabic
As the name speaks for itself, Menu control in asp.net is used to display a menu in an asp.net web application.
The content for the Menu control can be specified directly in the control or the menu control can be bound to a datasource. We will discuss databinding in a later video session.
In this video, let's discuss specifying the contents directly in the control. A Menu control is a collection of MenuItem objects.
By default, the menu control is displayed using vertical orientation. If you want to change its orientation to Horizontal, use Orientation property.
By default, StaticDisplayLevels Property is set to 1. This means only the first level is statically displayed. If you want 2 levels to be displayed statically, you would set this property to 2.
To control the amount of time it takes for the dynamically displayed portion of a menu to disappear, use DisappearAfter property. This is in milliseconds. If you want the menu to disappear after 2 seconds, you would set it to 2000 milliseconds.