GSSP-NET · Question #222
John works as a Web Developer for ProMetaworks Inc. He creates an ASP.NET application, named MyApp1, by using Visual Studio .NET. MyApp1 contains a page, named Page1. Page1 contains several TextBox…
The correct answer is C. Add a ValidationSummary control to the page. Set its ShowMessageBox property to True. See the full explanation below for the reasoning.
Question
John works as a Web Developer for ProMetaworks Inc. He creates an ASP.NET application, named MyApp1, by using Visual Studio .NET. MyApp1 contains a page, named Page1. Page1 contains several TextBox controls that accept users' input. John uses several validation controls on the page to validate input controls. He wants to display all the validation error messages on the page in a message box. However, he does not want the validation summary to be displayed inline on the Web page. What will he do to accomplish the task?
Options
- AAdd a CustomValidator control to the page. Write a custom client-side script function. Set
- BAdd a ValidationSummary control to the page. Set its ShowMessageBox and
- CAdd a ValidationSummary control to the page. Set its ShowMessageBox property to True
- DAdd a ValidationSummary control to the page. Set its DisplayMode property to
How the community answered
(26 responses)- A12% (3)
- B4% (1)
- C81% (21)
- D4% (1)
Community Discussion
No community discussion yet for this question.