Client Side Form validation in ASP.NET MVC

Client side form validation increases User friendliness. User doesn’t want to wait for page refresh and see form validation errors.

In ASP.NET MVC we can validate using Data Annotation. So we can use these validation to client side validation. No more huge validation codes.

We can use Jquery validation plugin comes with ASP.NET MVC. This bundle is not referenced in _layout.cshtml by default. We have to add it manually.

Watch youtube video 

Download source code

 

Advertisements

1 Comment

  1. Pingback: Remote modal validation attribute in ASP.NET MVC | randomtutes

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s