Now that I have demonstrated how to create a thin Contact form in ASP.NET using jQuery and some AJAX it is time to start making it even better. One of the first rules I learned back in my youth was users will enter anything in any field despite what logic should dictate. They will also not follow explicit instructions. Don’t believe me? Then put a form on a web site with no filtering what so ever and examine what data you catch, amazing isn’t it?

To force, or help users enter valid information in a web form or any application you may design you have to add validation, hints and other visual clues. The ASP.NET Web Forms framework (see how we are expanding our horizons now) has included a pretty good set of validation controls that naturally work with web controls. I am not going to review them today since they have been around for a decade now. Peter Blum has probably the best package of custom ASP.NET validator controls available that go above and well beyond the out of box set available in ASP.NET.

#jquery #ajax

Adding Client-side Form Validation With Jquery
1.15 GEEK