MVC : Custom validation attribute with Data Annotation
How to create custom validation attribute in ASP.NET MVC Data annotation attributes are heavily used in MVC data validations when posting or entering the data into the forms. MVC has many inbuilt data annotation attributes and we can use them for our validations. But sometimes we have to write our own validations for the form…