title: ASP.NET: How to access parent list item element from linkbutton?
body: <p>I have the following situation...</p>
  
  <pre><code>&lt;li&gt;&lt;asp:LinkButton ID="LinkButton1" runat="server"&gt;Link&lt;/asp:LinkButton&gt;&lt;/li&gt;
  </code></pre>
  
  <p>I'm wanting to be able to set the class (or add to the class attribute) of my list item when I click on the button.  So once I click on the LinkButton I want the code to change to something like the following...</p>
  
  <pre><code>&lt;li class="selected"&gt;&lt;asp:LinkButton ID="LinkButton1" runat="server"&gt;Link&lt;/asp:LinkButton&gt;&lt;/li&gt;
  </code></pre>
  
  <p>Thanks!</p>