Unobtrusive Validation in ASP.NET 4.5 Web Forms

ASP.NET forms provided validation controls ever since its initial release. In the earlier releases, ASP.NET validation controls uses JavaScript emitted by the ASP.NET Web Form framework. However, this unontrusive validation makes use of data attributes of HTML5 for validation.

Unobtrusive validation makes use of JQuery library data-* attributes of HTML5 to validate web form controls. It can be enabled in the web.config file, Global.asax, with individual Web Form code-behind. With obtrusive validations which reduces the response size because no JavaScript is emitted in the page framework.

Read the rest of the news here: http://www.codeguru.com/csharp/.net/net_asp/using-unobstructive-validation-in-asp.net-4.5-web-forms.htm

Leave a Reply

Your email address will not be published. Required fields are marked *