GIAC
GSSP-NET · Question #474
GSSP-NET Question #474: Real Exam Question with Answer & Explanation
Sign in or unlock GSSP-NET to reveal the answer and full explanation for question #474. The question stem and answer options stay visible for context.
Question
John works as a Web Developer for TechCom Inc. He creates an ASP.NET application, named MyApp1, by using Visual Studio .NET for a University Web site. Students will use MyApp1 to view their term end results. MyApp1 contains an ASP.NET page, named Page1. Page1 contains a TextBox control, named txtEnrolmentNo, and two Button controls, named btnSubmit and btnCancel. John wants to display the text "Enter Enrolment Number" within txtEnrolmentNo. He wants to ensure that if a user tries to submit the page without entering an enrolment number, the word "Error" appears next to txtEnrolmentNo. Which of the following actions will he take to accomplish the task? Each correct answer represents a part of the solution. Choose two.
Options
- AAdd a RequiredFieldValidator control to the page. Set its ControlToValidate property to
- BAdd a RequiredFieldValidator control to the page. Set its ControlToValidate property to
- CSet the InitialValue property of txtEnrolmentNo to "Enter Enrolment number".
- DSet the Text property of txtEnrolmentNo to "Enter Enrolment number".
- EAdd a RegularExpressionValidator control to the page. Set its ControlToValidate property
Unlock GSSP-NET to see the answer
You've previewed enough free GSSP-NET questions. Unlock GSSP-NET for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.