Is there a way to add an onclick event to an ASP.NET Label server control?
You can use Attributes to add onclick client side callback. I didn’t know you can do this on span tags, but if it works you can add ‘onclick’ by lblMyLabel.Attributes.Add(“onclick”, “foo();”); But foo(); would need to be a client side javascript function. System.Web.UI.WebControls.Label does NOT have OnClick server event. You could look into using AJAX … Read more