What should you do?

You create Web-based client applications. You are creating a Web control that includes data entry fields. The Web control also includes data validation code. The data validation code verifies whether the user has entered a valid date and a valid postal code in a text box. You are writing the code within the Web control to handle the invalid data. The Web control must work on as many browsers as possible. You need to design an appropriate feedback technique. What should you do?

You create Web-based client applications. You are creating a Web control that includes data entry fields. The Web control also includes data validation code. The data validation code verifies whether the user has entered a valid date and a valid postal code in a text box. You are writing the code within the Web control to handle the invalid data. The Web control must work on as many browsers as possible. You need to design an appropriate feedback technique. What should you do?

A.
Throw an exception, and include details about the invalid data in the Message property.

B.
Throw an exception, and include details about the invalid data in the InnerException property.

C.
Use a pop-up error message to inform the user that the data is not valid.

D.
Display text to indicate why the data is not valid.



Leave a Reply 0

Your email address will not be published. Required fields are marked *