<html>
<head runat="server">
<title>Binding a Menu Control to a SiteMapDataSource</title>
<link rel="stylesheet" href="/shared/netdemos.css">
</head>
<body>
<!-- #include virtual="~/shared/top.inc" -->
<div class="header"><h2>Binding a <span class="hilite">Menu Control</span> to a <span class="hilite">SiteMapDataSource</span></h2></div>
<hr size=1 width=92%>
<form runat="server">
<p align="center">This example shows a <b>Menu</b> bound to a <i>SiteMapDataSource</i> control.</p>
<div style="margin-left:50"
<asp:menu id="myMenu" runat="server"
datasourceid="siteMap"
staticdisplaylevels=2
maximumdynamicdisplaylevels=8
target="_ext">
<staticmenustyle
backcolor="ghostwhite"
horizontalpadding=10
verticalpadding=5
borderstyle="outset"
borderwidth=2 />
<dynamicmenustyle
backcolor="ghostwhite"
horizontalpadding=10
verticalpadding=5
borderstyle="outset"
borderwidth=2 />
<dynamichoverstyle backcolor="khaki" />
</asp:menu>
</div>
<asp:sitemapdatasource id="siteMap" runat="server" />
</form>
<hr size=1 width=92%>
<!-- #include virtual="~/shared/viewsrc.inc" -->
</body>
</html>