title: change li class in codebehind
body: <p>Is there any way to add/remove a class to an HTML li tag from C# codebehind?  for example, here's my code.</p>
  
  <pre><code>&lt;li&gt;
      &lt;asp:Panel ID="pnlClipboardEbulletin" runat="server"&gt;
      &lt;a href="/eBulletin.aspx"&gt;&lt;asp:Label ID="lblClipboardEbulletin" runat="server" /&gt;&lt;/a&gt;
      &lt;/asp:Panel&gt;
   &lt;/li&gt; 
   &lt;li class="noborder"&gt;
       &lt;asp:Panel ID="pnlClipboard" runat="server"&gt;
       &lt;a href="/displayMyList.aspx"&gt;&lt;img src="../Images/Clipboard.jpg" alt="Clipboard" /&gt;&lt;/a&gt;
       &lt;asp:HyperLink runat="server" ID="lnkClipboard" Text="Clipboard" NavigateUrl="~/displayMyList.aspx"&gt;&lt;/asp:HyperLink&gt;
       &lt;/asp:Panel&gt;
   &lt;/li&gt;
  </code></pre>
  
  <p>in the codebehind, I have to toggle the visibility of pnlClipboard based on other data.  If pnlClipboard = false, I want to set the class of the first li to class="noborder"</p>