title: Set item.selected in ASP.NET Menu Control
body: <p>ASP.NET newbie here. When on a page I'd like to set the corresponding menu item to selected. My approach is this:
  On Home.aspx.cs:</p>
  
  <pre><code>Menu menu = (Menu)Master.FindControl("Menu1");
  
  if (menu.Items.Count &gt; 0)
  {
      menu.FindItem("Home").Selected = true;
  }
  </code></pre>
  
  <p>Trouble is, <code>menu.item.count == 0</code> .
  My menu is bound to a sitemap, if that matters.</p>