<label for="email">Email address</label>
<asp:TextBox ID="email" Text="" runat="server"/>
But at render time ASP.NET changes the ID to something like
ctl08_email
This can be rectified by replacing the following in the 'for' attribute.
<label for="<%= email.ClientID %>">
ASP.NET will now place the TextBox ID in the labels 'for' attribute.
1 comment:
Great post, very helpful :)
Post a Comment