Select asp:Label text on click event
<p>I have a label on my page and want to select the text of this label whenever user click on it so it will be easier for user to Ctrl+C text on this label.
I tried using <code>SomeLabel.Attributes["onclick"] = "javascript:this.select();";</code> but it didn't work. 
Is there any way to do this?</p>
