I have a WebSiteMenuNavigation.xml file link via a XMLDataSource to my <asp:Menu>. I see the links such as Home, Careers, Contact Us etc. and the links behave like links with hover and everything but when I click on the link nothing happens. I have looked at my code over and over and can?t see what I?m doing wrong.
Here is the code snippets:
Xml file:
<?xml version="1.0" encoding="utf-8" ?>
<SiteMenu>
<MenuItem title="Home" url="~Default.aspx" tooltip="Home">
<MenuItem title="Careers" url="~Careers.aspx" tooltip="Careers"/>
<MenuItem title="Contact Us" url="~ContactUs.aspx" tooltip="Contact Us"/>
<MenuItem title="About Us" url="~AboutUs.aspx" tooltip="About Us"/>
<MenuItem title="Terms of Use" url="~TermsOfUse.aspx" tooltip="Terms of Use"/>
<MenuItem title="Privacy Policy" url="~PrivacyPolicy.aspx" tooltip="Privacy Policy"/>
<MenuItem title="link" url="~Default.aspx" tooltip="Home"/>
<MenuItem title="link" url="~Default.aspx" tooltip="Home"/>
<MenuItem title="link" url="~Default.aspx" tooltip="Home"/>
</MenuItem>
</SiteMenu>
Menu control in on DefaultMaster.master page:
<div class="box-736 flatnav">
<div class="boxbottom">
<ul>
<li>
<asp:Menu ID="HeaderMenu" runat="server" Orientation="Horizontal" MaximumDynamicDisplayLevels="0" StaticDisplayLevels="2" DataSourceID="XmlDSWebSiteMenuNavigation" >
<DataBindings>
<asp:MenuItemBinding DataMember="MenuItem" TextField="title" />
<asp:MenuItemBinding DataMember="MenuItem" NavigateUrlField="url" />
<asp:MenuItemBinding DataMember="MenuItem" ToolTipField="tooltip" />
</DataBindings>
</asp:Menu>
</li>
</ul>
</div> <!-- end .boxbottom -->
</div> <!-- end .box-736 -->
XMLDataSource code in DefaultMaster.master:
<asp:XmlDataSource ID="XmlDSWebSiteMenuNavigation" runat="server" XPath="SiteMenu/MenuItem" DataFile="~/WebSiteMenuNavigation.xml"></asp:XmlDataSource>
Thanks for your help?.
Patrick