The DataTextField property of a DropDownList control is used to specify the ___________ of the data items to display.
- Key
- Label
- Text
- Value
The correct answer is "Text." The DataTextField property is used to specify the field from the data source that will be displayed as the text in the DropDownList control. For instance, if your data source has a "Name" field, you would set DataTextField to "Name" to display names in the DropDownList.
Loading...
Related Quiz
- When optimizing LINQ queries for performance, which of the following should you consider?
- In which technology or platform are DataGrid and DataGridView controls commonly used?
- Scenario: You are developing an application that needs to interact with a SQL Server database. Which component of Entity Framework would you use to define the data model and work with the database?
- The use of ___________ can help in caching query results and improving query performance.
- You want to retrieve a single value (e.g., the total number of records) from a SELECT statement. Which ADO.NET method would you use for this purpose?