Validating in a web user control
This applies to various cases such as email address, URL, dates, phone numbers and others.If the information is not in the correct format, users should be informed and correct format should be suggested.If the validation fails, the response is then sent back to the client, page that contains the web form is refreshed and a feedback is shown.This method is secure because it will work even if Java Script is turned off in the browser and it can’t be easily bypassed by malicious users. Ajax calls to the server can validate as you type and provide immediate feedback.On the other hand, users will have to fill in the information without getting a response until they submit the form. Validation in this context refers to validating rules such as username availability.You can read more about validation with Ajax in this excellent tutorial on j Query For Designers.
Let the user type whatever he needs, and if it’s reasonable, make the software do the right thing with it.This design pattern is also often called forgiving format UI design pattern.We’ll discuss some other format techniques later in the article.Validation is being handled in Java Script methods that you create (or within frameworks/plugins) and users get immediate feedback if validation fails.Main drawback of client-side validation is that it relies on Java Script.