GSSP-NET · Question #1
You work as a Software Developer for ABC Inc. The company uses Visual Studio .NET 2008 as its application development platform. You create an ASP.NET Web application using .NET Framework 3.5. You…
The correct answer is B. RequiredFieldValidator. See the full explanation below for the reasoning.
Question
You work as a Software Developer for ABC Inc. The company uses Visual Studio .NET 2008 as its application development platform. You create an ASP.NET Web application using .NET Framework 3.5. You create a Web form in the application that permits users to provide personal information. You add a DropDownList control to the Web form to retrieve the residential status of users. The default item that the DropDownList control displays is the "Select Country" option. You have to ensure that users select a country other than the default option. Which of the following validation controls should you use to accomplish this task?
Options
- ARangeValidator
- BRequiredFieldValidator
- CCustomValidator
- DRegularExpressionValidator
How the community answered
(42 responses)- A10% (4)
- B86% (36)
- C2% (1)
- D2% (1)
Community Discussion
No community discussion yet for this question.