Data Haunting

Easy Solutions Destination

By

Checkbox custom validation at client side and server side in Asp.net MVC

In asp.net MVC we required to customize checkbox validation as it is not provided in to Data Annotation for Model. Here we will see how to validate checkbox at client side and server side in Asp.net MVC.

Let’s start to demonstrate with following Example :

Create Custom Attribute Class for Checkbox Validation

Use Custom Attribute Class in Model for Checkbox Validation

Create Custom Client Side Jquery for CheckBox Validation

What is your opinion ?

So using above method you can easily handle Checkbox client Side and Server Side validation . If you have any query you can comment or you can mail me.

2 Responses to Checkbox custom validation at client side and server side in Asp.net MVC

  1. Naveen says:

    Nice post

Leave a Reply