Summary

As you have seen, Atlas comes with client-side validation controls. However, in comparison to ASP.NET validation controls, they lack some features. The use of the Atlas controls is a bit unusual compared to the server equivalents. They do not integrate in the form submission mechanism of the browser; meaning that the form can be submitted even though there are errors in the form. Finally, and most important, validation works only on the client side and only with JavaScript. Since ASP.NET validation controls work both on the server-side and on the client-side and therefore cannot be circumvented by disabling JavaScript, they are generally preferable—if they are an option. However, if the web site uses Atlas for all client-side effects, the Atlas validators integrate fine with other Atlas features.

Get Programming Atlas now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.