What is the primary difference between a ListBox and a DropDownList control?
- Allows multiple selections
- Automatically sorts items
- Restricts the user to select only one item
- Displays items in a drop-down list format
A ListBox control allows users to select multiple items at once, while a DropDownList restricts the user to selecting only one item at a time. This makes DropDownList suitable for scenarios where only one option needs to be chosen, such as selecting a category or a state. ListBox, on the other hand, is ideal when users need to select multiple items, such as when choosing multiple items from a list of available options.
Loading...
Related Quiz
- Which SQL keyword is used to sort the result set in ascending order?
- The IsolationLevel enumeration in ADO.NET provides options such as ReadCommitted and ___________.
- Scenario: You are developing an application that needs to query a list of customer objects stored in memory. Which LINQ technology would you choose for this task?
- Scenario: You are working on a multi-user system, and you need to implement concurrency control for editing records in a LINQ to SQL application. How would you achieve this?
- Deferred execution means that a LINQ to DataSet query is not executed until you explicitly call ___________ methods.