Microsoft
98-363 · Question #21
You set a DataTable as the data source for an <asp:DropDownList> control. The DataTable has a field named UserName. You need to display the UserName field values as the display text in the…
The correct answer is C. Set the DataTextField property of the <asp:DropDownList> control to UserName. See the full explanation below for the reasoning.
Question
You set a DataTable as the data source for an asp:DropDownList control. The DataTable has a field named UserName. You need to display the UserName field values as the display text in the asp:DropDownList control. What should you do?
Options
- Aset the DataSource property of the asp:DropDownList control to UserName.
- Bset the DataTable property of the asp:DropDovnList control to UserName.
- CSet the DataTextField property of the asp:DropDownList control to UserName.
- DSet the DataValueField property of the asp:DropDownList control to UserName.
How the community answered
(18 responses)- B6% (1)
- C83% (15)
- D11% (2)
Community Discussion
No community discussion yet for this question.