Filter In MVC 3


What is Filter –As per MSDN “Filters are classes that provide both a declarative and programmatic means to add pre-action and post-action behavior to controller action methods. –It let perform logic either before an action method is called or after an action method runs.” like before executing an action method of controller you want to … Continue reading Filter In MVC 3

Custom validation in ASP.NET MVC 3


As you may know that you can implement validation using validation attributes that come in (System.ComponentModel.DataAnnotations namespace) in MVC , although there are numbers of  validation attributes are provided by the framework like  [Required], [Range],  [StringLength], Compare and [RegularExpression]  but it might not fulfill your business requirements, in this case you can write your own validation attribute and use … Continue reading Custom validation in ASP.NET MVC 3