Hi
public class Location
{
public Location()
{
}
[Key]
[Display(Name = "Id")]
public string Id { get; set; }
[DataType(DataType.Text)]
[RegularExpression(@"^[a-zA-Z'.\s]{1,25}$", ErrorMessage = "Special Characters not allowed")]
[Required(ErrorMessage = "Please enter Location"), MaxLength(25)]
[Display(Name = "Description")]
public string Description { get; set; }
[Required]
public bool IsActive { get; set; }
}
@using (Html.BeginForm("CreateEdit", "Location", FormMethod.Post))
{
}
Thanks
Ramco RamcoPosted Jun 12, 2021, 9:09 AM
Sachin SinghPosted Jun 12, 2021, 8:58 AM
Ramco RamcoPosted Jun 12, 2021, 8:37 AM
Sachin SinghPosted Jun 12, 2021, 8:15 AM