Verify control using ASP.NET
-------------------------------------------------- ------------------------------
Abstract ASP.NET features a powerful embodiment is a rich web control, here we talk about one of them - verification controls. It summarizes various web data check methods, designed as today's general ASP.NET control form.
-------------------------------------------------- ------------------------------
Contents 1. Introduction to Verification Controls 2. Method of Usage of Verify Controls 3. Small knot
-------------------------------------------------- ------------------------------
1. Verify that the control is the name suggests, the verification control is a control that checks the user's correctness. If the user enters the data in the text box, it shows a prompt message, indicating that the verification data is illegal. The verification process can be executed on the server or on the client, and the verification code running on the client is executed before the data is submitted, so the performance of the program can be improved. ASP.NET verification controls can make multiple validations, such as data range checks, comparison between data, and custom checks, etc., the following content will be described one by one. These verification controls will be described one by one.
-------------------------------------------------- ------------------------------
2. Method for verifying controls 1 RequiredFieldValidator control When the control on the page requires input data, RequiredFieldValidator works, and the ControlTovAlidate property selects the control you need to verify, and the ErrorMessage property is the error message displayed after the verification is not legal. .