GIAC GIAC Secure Software Programmer - C#.NET GSSP-NET-CSHARP Question # 127 Topic 13 Discussion

GIAC GIAC Secure Software Programmer - C#.NET GSSP-NET-CSHARP Question # 127 Topic 13 Discussion

GSSP-NET-CSHARP Exam Topic 13 Question 127 Discussion:
Question #: 127
Topic #: 13

John works as a Web Developer for Bitsoft 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 result. MyApp1 contains an ASP.NET page named, named Page1. Page1 contains a TextBox control, named txtEnrolmentNo, and two Button controls, named btnSubmit and btnCancel respectively.

John wants that if a user tries to submit the page by clicking the Submit button without entering his enrolment the word "Required" appears next to txtEnrolmentNo. However, when a user clicks the Cancel button he is redirected to a new page, named PageCancel.aspx. To accomplish this he adds a RequiredFieldValidator control to the page and sets its ControlToValidate and ErrorMessage properties to txtEnrolmentNo and "Required" respectively. However, when he executes the application he finds that the validation check is also performed on clicking the Cancel button. What is the most likely cause of the issue?


A.

The CauseValidation property of btnSubmit is not set to True.


B.

The CauseValidation property of btnCancel is not set to True.


C.

The CauseValidation property of btnSubmit is not set to False.


D.

The CauseValidation property of btnCancel is not set to False.


Get Premium GSSP-NET-CSHARP Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.