Click here to Skip to main content
15,881,625 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
What Should I do..?Plzz help me to do the following question.
Posted
Comments
[no name] 19-Mar-15 2:13am    
Chech my solution and
Click here

VB
Hi, try to use this regex in your code,

<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TextBox1"
    ValidationExpression="[a-zA-Z ]*$" ErrorMessage="*Valid characters: Alphabets and space." />
 
Share this answer
 
Comments
Member 11537367 19-Mar-15 2:06am    
i have try this but after letters it taking numbers
deepankarbhatnagar 19-Mar-15 2:09am    
try this: ^[A-Za-z]+$
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900