Link to home
Start Free TrialLog in
Avatar of JCWEBHOST
JCWEBHOST

asked on

RegularExpressionValidator

Hey guys, i have an RegularExpressionValidator and i want to allow the user to enter specail char,

like ritesh's

it does not work, i want to allow the user to enter  '   @ $!  


here my code

 <asp:RegularExpressionValidator ID="RFVF_CName" runat="server" ControlToValidate="txtRName"
                    CssClass="validator" ErrorMessage=" 4-50 char required!" ValidationExpression="^[0-9a-zA-Z ]{4,50}$"
                    ValidationGroup="a" />
ASKER CERTIFIED SOLUTION
Avatar of PrisonBroken
PrisonBroken
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
all you should need do is add a \ before any special characters.

Cheers