Validating in a web user control
Validation rules can be set in either table design or table datasheet view.There are three types of validation rules in Access: 1.In the following example we will provide you with step by step instructions regarding how to force your user to enter a value inside a text box (he will not be able to continue working without entering this value).
Being sure from the correctness of the input coming to your application is one of the major practices used to rise application robustness. The process of developing a very simple web application In most of web applications, the user of the application provides input to be manipulated by your web application.
From the toolbox get a Text Box, a Label, a Button, a Range Validator, and a Required Field Validator and draw them on your form (Place the Required Field Validator control, and the Range Validator control to the side of the Text Box) In the properties window, set the following properties: Run the example and note that it does not accept values outside 0 ...
100 You may note that we set some properties that are specific to the validation control we used (like: Minimum Value, Maximum Value, Type).
Although it's not typically a good practice to skip into implementation without sufficient preparation, in the particular domain of our tutorial we can do so safely.
In fact this will give you a bird view picture of the subject that will make the comprehension of the rest of the tutorial easier.Your validation needs does not fit on any of the categories specified in this table but you are still able to write code that checks for the validity of this input.