Write a Validation Expression for RegularExpressionValidator to allow letters , numbers , space , dash and underscore

Question : Write a Validation Expression for RegularExpressionValidator to allow letters , numbers , space , dash and underscore ?

Answer : ValidationExpression=”^([a-zA-Z0-9_s-]*)$”

Explanation :

s = Spacing
– =  Allowing dash –
_ = Allow Underscore
a-z = Small letter
A-Z = Capital Letter
0-9 = Numeric

ASP.NET Interview Questions :

3 thoughts on “Write a Validation Expression for RegularExpressionValidator to allow letters , numbers , space , dash and underscore

  1. These type of question can really helped me out to learn more on ASP.NET, starting with these simple applications will gain me lot and will let me know where exactly I stand.

Leave a Reply

Discover more from Abhyas

Subscribe now to keep reading and get access to the full archive.

Continue reading