Saturday, 6 March 2021

MVC - Validation - Allow all characters except specified ones

   Watch this example on YouTube

 

 

 

 

 [RegularExpression (@"^[^*<>a]*$", ErrorMessage = " invalid")]
        public string LastName { get; set; }

No comments:

Post a Comment