How to associate an asp:Label with a TextBox or other Form control?
Product Type: Tips and Tricks (Books)
This how to describe how to attach an asp:Label control with the TextBox so that clicking the asp:Label cause focus on the TextBox.
<asp:Label ID="lblName" runat="server" AssociatedControlID="txtFirstName" Text="First Name: " />
<asp:TextBox ID="txtFirstName" runat="server" />
AssociateControlID property of the Label control can be specified to the TextBox id that associates the Label to the TextBox. Clicking on the Label control focuses the TextBox.