title: How to change HTML menu li attributes vb
body: <p>I have a web page with master, two content pages and CSS , I would like to have the left side menu get class="current" when any of the pages appears</p>
  
  <p>I tried every examples and all your answers like findcontrol and others but never work.</p>
  
  <p>may be I have a problem cause I'm new to asp.net</p>
  
  <p>regards</p>
  
  <p>CSS sheet</p>
  
  <pre><code>#templatemo_left_content {
    float: left;
    background: #0a2035 url("/images/templatemo_left_bg.jpg") top no-repeat;
    width: 358px;
    display: inline;
  }
  </code></pre>
  
  <p>/* Menu */</p>
  
  <pre><code>.templatemo_menu {
    float: right;
    width: 211px;
    margin: 20px 65px 35px 0;
    padding: 0;
    display: inline;
  }
  
  .templatemo_menu ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    width: 211px;
  }
  
  .templatemo_menu li a {
    display: block;
    height: 27px;
    padding: 7px 0 0 50px;
    margin: 5px 0 0 0;
    color: #fff;
    font-weight: bold;
    background: url("/images/templatemo_menu.gif") no-repeat; 
    text-decoration:none;
  }
  
  .templatemo_menu li a:hover, .templatemo_menu li .current {
    background: url(images/templatemo_menu_current.gif) no-repeat;    
    text-decoration:none;
    color: #00FFFF;
  }
  </code></pre>
  
  <p>/* End of Menu */</p>
  
  <p>master page html</p>
  
  <pre><code>&lt;div id="templatemo_left_content"&gt;
    &lt;div class="templatemo_menu"&gt;
      &lt;ul  style="height: 265px"&gt;
        &lt;li id="Home" runat="server"  &gt;&lt;a href="Default.aspx" &gt;Home&lt;/a&gt;&lt;/li&gt; 
        &lt;li id="Products" runat="server" &gt;&lt;a href="#"  &gt;Products&lt;/a&gt;&lt;/li&gt;
        &lt;li id="Services" runat="server" &gt;&lt;a href="#" &gt;Services&lt;/a&gt;&lt;/li&gt;  
        &lt;li id="About" runat="server" &gt;&lt;a href="About.aspx"  &gt;About&lt;/a&gt;&lt;/li&gt;
        &lt;li id="Company" runat="server"&gt;&lt;a href="#"&gt;About Our Company&lt;/a&gt;&lt;/li&gt;
        &lt;li id="Contact" runat="server" &gt;&lt;a href="#"&gt;Contact Us&lt;/a&gt;&lt;/li&gt;
        &lt;li id="Customers" runat="server"&gt;&lt;a href="#l"&gt;Our Customers&lt;/a&gt;&lt;/li&gt;
      &lt;/ul&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>