Highlight menu item on site.master
<p>I am using this piece of code in Site.master to highlight the selected menu item</p>

<pre><code>protected void Page_Load(object sender, EventArgs e)
        {
            foreach (MenuItem item in NavigationMenu.Items)
            {

                item.Selected = Page.ResolveUrl(item.NavigateUrl).ToLowerInvariant() == Request.Path.ToLowerInvariant();

            }
        }
</code></pre>

<p>But it is only highlighted on the first page. 
Assuming I am on page1.aspx  and that menu item is highlighted 
Now if there is a link in page1.aspx leading to  another page page2.aspx.
Then the highlight on page1.aspx is not seen. The parent page is still page1.aspx.
Just that there is a link for additional info on page2.</p>

<p>Any help is appreciated</p>

<p>Thanks
Sun</p>
