Navigation controls in
ASP.NET
Navigation controls
Navigation controls are very important for
websites.
Navigation controls are basically used to
navigate the user through webpage .
It is more helpful for making the navigation
of pages easier .
There are three controls in ASP.NET ,Which
are used for Navigation on the webpage.
Tree view control
Menu Control
Site Map Path control
TreeView Control
TreeView Control
TreeView is navigation control used in
ASP.NET to display the data in hierarchical
list manner.
Treeview control Example
SiteMapPath control
SiteMapPath control displays the navigation
path of the current page.
This control creates the navigation
mechanism which is linear path defining
where the user is currently located in
navigation arrangement.
It helps end user to know his location in
relation to the rest of the site.
Site map path control
Menu Control
Menu is an another navigation control in ASP.NET which
is used to display menu in web page.
This control is used in combination with
SiteMapDataSource control for navigating the web Site.
It displays two types of menu static menu and dynamic
menu.
Static menu is always displayed in menu Control, by
default only menu items at the root levels are displayed.
Dynamic menu is displayed only when the use moves the
mouse pointer over the parent menu that contains a
dynamic sub menu.
There are some Namespaces, which are
used for above Navigation controls which are
given below:
Using.System.Web.UI.WebControls.TreeView
;
Using.System.Web.UI.WebControls.Menu ;
Using.System.Web.UI.WebControls.SiteMapP
ath ;