可以使用Label控件来标注一个HTML表单字段。
Label控件拥有属性AssociatedControlID,可以设置此属性来指向表示表单字段的ASP.NET控件。
如:
<asp:Label ID="labTest" runat="server" AssociatedControlID="txtName">User<u>N</u>ame</asp:Label>
<asp:TextBox ID="txtName" runat="server" ></asp:TextBox>