GSSP-NET · Question #179
John works as a Web Developer for ProMetaworks Inc. He creates an ASP.NET application, named MyApp1, 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 and. 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, 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 ValidationSummary control to the page. Set its ShowMessageBox and ShowSummary
- BAdd a ValidationSummary control to the page. Set its DisplayMode property to MessageBox .
- CAdd a ValidationSummary control to the page. Set its ShowMessageBox property to true and
- DAdd a CustomValidator control to the page. Write a custom client-side script function. Set the
How the community answered
(45 responses)- A9% (4)
- B2% (1)
- C84% (38)
- D4% (2)
Community Discussion
No community discussion yet for this question.