Skip to content

How to allow apostrophe and alphabets in name in mvc model ?

Maharudra Gadekar

Maharudra Gadekar

Asked Oct 6, 2016, 8:41 PM EDT2 answers
Share
LinkedInX
Hello,
 
How to allow apostrophe and alphabets in name in mvc model using data anotation???
 
thanks in avance.........

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • Delpin Susai Raj
    0
    https://www.asp.net/mvc/overview/getting-started/introduction/adding-validation
    0
  • 1 short reply
    • Delpin Susai Raj
      0
      ^[a-zA-Z'.,-]{0,150}$
      0