MVC Archive

Validations in MVC can be done using Annotations. Annotations are attributes which be applied to Model Properties, for example : public class EmployeInfo { [Required(ErrorMessage="Name is Required")] public string Name { set; get; } } To Display validation message...