What should you do?

You are developing an ASP.NET Web page that contains input controls, validation controls, and a button named btnSubmit. The page has the following code-behind. (Line numbers are included for reference only.)

You need to ensure that all data that is submitted passes validation before the data is saved in a database. What should you do?
A. Add the following method override.

B. Add the following method override.

C. Add the following method override.

D. Add the following code segment at line 10.
if (Page.IsValid) this.SaveToDatabase();

microsoft-exams

Leave a Reply

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


The reCAPTCHA verification period has expired. Please reload the page.