How do you get the asp:Menu to follow the url provided in the Web.sitemap?
<p>I have a <em>simple</em> asp:menu item that uses the Web.sitemap to get the menu items. The page will postback but fails to get the page associated to the clicked item. I will mention that the navigation bar code is within the masterpage file.</p>

<pre><code>&lt;div&gt;
        &lt;asp:SiteMapDataSource ID="SiteMapDataSource1"  ShowStartingNode="false" runat="server" /&gt;
        &lt;asp:Menu ID="Menu1" Orientation="horizontal"  runat="server" BackColor="#a0a080" DataSourceID="SiteMapDataSource1"
            DynamicHorizontalOffset="2" Font-Names="Verdana" Font-Size="0.8em" ForeColor="#a00000"
            StaticSubMenuIndent="10px" Style="z-index: 2; left: 390px; position: absolute;
            top: 281px" Height="20px" Width="311px"&gt;
            &lt;StaticSelectedStyle BackColor="#a0a080" /&gt;
            &lt;StaticMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" /&gt;
            &lt;DynamicHoverStyle BackColor="#a0a080" ForeColor="White" /&gt;
            &lt;DynamicMenuStyle BackColor="#a0a080" /&gt;
            &lt;DynamicSelectedStyle BackColor="#a0a080" /&gt;
            &lt;DynamicMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" /&gt;
            &lt;DataBindings&gt;
                &lt;asp:MenuItemBinding DataMember="SiteMapNode" EnabledField="Title" TextField="Title" /&gt;
            &lt;/DataBindings&gt;
            &lt;StaticHoverStyle BackColor="#666666" ForeColor="White" /&gt;
        &lt;/asp:Menu&gt;
    &lt;/div&gt;
</code></pre>

<p><code>&lt;siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" &gt;<br />
  &lt;siteMapNode url="" title=""  description=""&gt;<br />
    &lt;siteMapNode title="Home"  description="Zombie (be)Warehouse" url="index.aspx" /&gt;<br />
    &lt;siteMapNode title="Armor" description="Anti-Zombie Armor" url="Armor.aspx" /&gt;<br />
    &lt;siteMapNode title="Weapons" description="Anti-Zombie Weapons" url="Weapons.aspx" /&gt;<br />
    &lt;siteMapNode title="Manuals" description="Survival Manuals" url="Manuals.aspx" /&gt;<br />
    &lt;siteMapNode title="Sustenance" description="Prepared food for survival" url="Sustenance.aspx" /&gt;<br />
    &lt;siteMapNode title="Contacts"  description="Contact Us"  url="Contacts.aspx" /&gt;<br />
    &lt;siteMapNode title="About" description="About Zombie (be)Warehouse" url="About.aspx" /&gt;<br />
  &lt;/siteMapNode&gt;<br />
&lt;/siteMap&gt;</code></p>

<p><strong>Update:</strong>
The problem is found in the DataBindings section of the menu item. Notice the line:</p>

<pre><code>&lt;asp:MenuItemBinding DataMember="SiteMapNode" EnabledField="Title" Text="Title" /&gt;
</code></pre>

<p>The Text="Title" set's the menu's displayed text from the Web.sitemap's Text field. I noticed that the MenuItemBinding item had a field called NavigateUrlField.</p>

<p>So to solve this issue, you simple need to change/add to the asp:MenuItemBinding</p>

<pre><code>&lt;asp:MenuItemBinding DataMember="SiteMapNode" NavigateUrlField="url" EnabledField="Title" TextField="Title" /&gt;
</code></pre>
