what is validation expression for at least 150 characters
in asp.net regular expression
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Guest UserRank #816 · 2.8K reputationPosted Feb 24, 2015, 9:49 PM EST
dot for any character, 150 minimum, no maximum.
Suraj SahooRank #382 · 6.6K reputationPosted Feb 24, 2015, 9:58 PM EST
This will set the range, else use the MaxLength property and set to 150. This should work.
If I have anticipated correct.
[Required(ErrorMessage = "Name is required.")]
[StringLength(40, ErrorMessage = "Name cannot be longer than 40 characters.")]
public string Name { get; set; }
Accept if helps anyway.
Thanks
Khargesh RajputRank #616 · 3.9K reputationPosted Feb 24, 2015, 10:02 PM EST