Most Web sites do all of their validation checks on the server.You need to write the server-based checks anyway for clients without script, so it can be hard to justify writing it all over again for rich clients.NET and walks through an example of adding validation to a page.(11 printed pages) Introduction The Problem The Objective The Solution-Overview Client Features What Is a Validator?
The user id must contain 6-10 alpha characters and must not already be in use.
In a Win Form I'm doing initial validation in the Form. To make the code short only three fields are shown in the code.
So before saving data, I want to validate whether all the required fields are filled (Text Boxes) by the user. I would rather use a generic function that would be passed each control on the form and based on the type of the control, separate validation logic would be written.
There are five types of validator controls that perform different types of checks.
Another element in our solution is the Validation Summary control.