Validating date asp net


17-Mar-2019 00:27

When you restrict the values that users can enter in forms, you reduce the chance that someone can enter a value that can compromise the security of your site.

To see how validation works, run this page and deliberately make mistakes.

Therefore, you also have to make sure that the values that users enter can be correctly converted to the appropriate data types.

validating date asp net-17

Tchat new york webcam

For example, suppose you specify that a value should be an integer.

For example, here's what the page looks like if you forget to enter a course name, if you enter an, and if you enter an invalid date: By default, user input is validated after users submit the page — that is, the validation is performed in server code.