title: Is there a way to add an onclick event to an ASP.NET Label server control?
body: <p>I wanted to do something like this:</p>
  
  <pre><code>&lt;asp:Label ID="lblMyLabel" onclick="lblMyLabel_Click" runat="server"&gt;My Label&lt;/asp:Label&gt;
  </code></pre>
  
  <p>I know that in Javascript I can do:</p>
  
  <pre><code>&lt;span onclick="foo();"&gt;My Label&lt;/span&gt;
  </code></pre>
  
  <p>So I'm wondering why I can't do that with a Label object.</p>