public class UserEntity { public Int64? UID { get; set; } [Required] [Display(Name = "Customer Name")] public string Name { get; set; } [Required] [Display(Name = "User Name/ Mobile Number")] [RegularExpression("^[0-9]{10}$", ErrorMessage = "User Name Should be 10 digit Mobile No")] [Remote("IsUserAvailable", "Login", AdditionalFields = "UID")] public string UserName { get; set; } [Required] [Display(Name = "Password")] public string Password { get; set; } [Required] [Display(Name = "Confirm Password")] [Compare("Password", ErrorMessage = "The password and confirmation password do not match.")] }
@Html.EditorFor(model => model.BatchId, new {@class = "k-textbox", data_val = false})
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)