Hi
How to create a single Partial View for Create & Update . All Data Annotation values should get implemented at Client Side.using Modal Popup
public class Customer { public Customer() { }
[Key] [Required(ErrorMessage = "Id cannot be Blank. Max length should be less than or equal to 20."), MaxLength(20)] [Display(Name = "Id")] public string Id { get; set; }
[Display(Name = "Description")] [Required(ErrorMessage = "Customer Name cannot be Blank. Max length should be less than or equal to 50"), MaxLength(50)] public string Description { get; set; }
[Display(Name = "Active")] public bool IsActive { get; set; }
}
Thanks