I am converting an HTML code that uses Bootstrap 3 into ASP.NET Web Form. The Bootstrap 3 class "form-group" has a tag with "For" attribute. For example:
<div class="form-group">
<label for="txtField" class="control-label">Caption:</lable>
<input type="text" id="txtField" name="txtField" class="form-control" />
</div>
I am converting the above code into using controls as:
<div class="form-group">
<asp:label class="control-label">Caption:></asp:lable>
<asp:TextBox id="txtField" class="form-control" /asp:TextBox>
</div>
But <asp:TextBox>
does not have an attribute "name" and <asp:Label>
does not have attribute "for". What should I use instead? Or it does not matter at all if I skip these attributes?