title: Hilighting the current page in an asp.net 3.5 master page
body: <p>In my project the master page contains a repeater that's used as a menu with an Xml file as the data source for the repeater.</p>
  
  <pre><code>&lt;asp:Repeater ID="Admin_menus" runat="server"&gt;
      &lt;HeaderTemplate&gt;&lt;div id="navmenu"&gt;&lt;ul&gt;&lt;/HeaderTemplate&gt;
      &lt;FooterTemplate&gt;|&lt;/ul&gt;&lt;/div&gt;&lt;/FooterTemplate&gt;
      &lt;ItemTemplate&gt;
          |&lt;li&gt;
          &lt;a href="&lt;%# DataBinder.Eval(Container.DataItem, "url")%&gt;" 
             class="link6" id="&lt;%# DataBinder.Eval(Container.DataItem, "id")%&gt;"&gt;
                 &lt;strong&gt;
                     &lt;%# DataBinder.Eval(Container.DataItem, "title")%&gt;
                 &lt;/strong&gt; 
          &lt;/a&gt;
          &lt;/li&gt;
      &lt;/ItemTemplate&gt;
  &lt;/asp:Repeater&gt;
  </code></pre>
  
  <p>urls in the xml file is as </p>
  
  <pre><code>&lt;menuitems&gt;
      &lt;item id="1" url="Employee.aspx" title="Employee" description="Employee" /&gt;
      &lt;item id="2" url="Location.aspx" title="Location"  description="Location" /&gt;
  &lt;/menuitems&gt;
  </code></pre>
  
  <p>Here I want to change the CSS style of the current page in the menu.</p>