Click here to Skip to main content
14,932,691 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.
[no name] 19-Mar-15 2:13am
Chech my solution and
Click here

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." />
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]+$

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

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