Is there a way to add an onclick event to an ASP.NET Label server control?
Posted
by fuentesjr
on Stack Overflow
See other posts from Stack Overflow
or by fuentesjr
Published on 2008-10-08T01:45:21Z
Indexed on
2010/04/08
22:03 UTC
Read the original article
Hit count: 344
I wanted to do something like this:
<asp:Label ID="lblMyLabel" onclick="lblMyLabel_Click" runat="server">My Label</asp:Label>
I know that in Javascript I can do:
<span onclick="foo();">My Label</span>
So I'm wondering why I can't do that with a Label object.
© Stack Overflow or respective owner