Custom Validation Attribute in ASP.NET

Custom Property Validation Attribute Above mentioned value defined as " User defined custom attribute " Normally .Net developers used following types of attribute - Compare - Range - Required - RegularExpression - StringLength - Authorize etc..... MSDN defined namespace - using System.ComponentModel.DataAnnotations; Step 1 : But we are creating our own defined attributes in C# Consider , we want to check weight can't be more than 100 to be entered by end user on web site [Note: Just for your code beautification make folder in solution as Infrastructure or any] I created folder as MVC Infrastructure in solution. namespace BlogManagement.Infrastructure { public class RanegDieIdAttribute : RequiredAttribute { public override bool IsValid( object value) { ...