Home > DeveloperSection > Forums > Regular expression for space char
Amit Singh

Total Post:103

Points:721
Posted on    March-14-2011 4:45 AM

 C# C# 
Ratings:


 1 Reply(s)
 1743  View(s)
Rate this:

problem in creating validation expression for space character in case of numeric data entry in text box



Awadhendra Tiwari

Total Post:126

Points:882
Posted on    March-14-2011 8:23 AM

Write down following expression on ValidationExpression property of RegularExpressionValidator control  ValidationExpression="^([\s]*[0-9]+[\s]*)" asp:RegularExpressionValidator>

This might be fullfill your requirement.


Don't want to miss updates? Please click the below button!

Follow MindStick