You are dynamically adding controls to an ASP.NET page in the Page_Load event handler.
The page will have text boxes that correspond to the columns in a database table.
Each text box will be preceded by a label that displays the name of the corresponding column.
You need to create the form so that when the user clicks the label, the corresponding text box is selected for
input.
What should you do?
A.
For each column, output the following HTML, whereCOL is replaced by the name of the column.
<label>COL</label>
<input name=”COL” type=”text” id=”COL” />
B.
For each column, output the following HTML, whereCOL is replaced by the name of the column.
<label AssociatedControlID=”COL”>COL</label>
<input name=”COL” type=”text” id=”COL” />
C.
For each column, create an asp:Label control and a corresponding asp:TextBox that have the same ID.
D.
For each column, create an asp:Label control and set the AssociatedControlID to the ID of the
corresponding asp:Textbox control.