Validating web site slow
NET validator controls to check user input in a Web page.
You will work with some controls that perform all checking automatically, requiring no code.
However, in this case you can create client-side code that performs essentially the same check that your server-side code is performing.
The page you create will prompt the user for an e-mail address, the number of people to reserve for, and a preferred date.
The page also allows the user to request a telephone confirmation of the reservation.
(The default for this page, if implemented, would be e-mail confirmation.) By default, the Web Forms page automatically validates that malicious users are not attempting to send script to your application even if you do not use validation controls. For information about the difference between these Web project types, see text box can be converted to a date value. The first is the custom validation code that runs when the page is submitted.
You will also create a custom validator with code that you write, which illustrates how you can add your own logic to the validation framework in the page.
Finally, you will learn how you can validate user input conditionally, depending on choices that the user makes in a page.