Hi
In below Reqgular expressiob i want - Required & MaxLength condition should be separate.
In Special Character i want to allow only Alphabet , Space & BackSpace
[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")]
Thanks
Ramco RamcoPosted Jun 16, 2021, 3:30 AM
Hi Rizwan
In regular expression i wanted only first character should be Alphabet , Numeric digits not allowed.
Thanks
Rijwan AnsariPosted Jun 15, 2021, 5:01 PM