How to use validation control [Resolved]

Posted by Jayakumars under ADO.NET on 2/3/2016 | Points: 10 | Views : 2508 | Status : [Member] [MVP] | Replies : 1
Hi

How to Allow only Characters with Initials and space allow character in RegularExpressionValidator in aspx

For ex: Raja Ram Mohan Roy .A.B.Z

I need how to allow above string in my RegularExpressionValidator in aspx

what i change my ValidationExpression any one guide me

now my control this

<asp:RegularExpressionValidator ID="snly" runat="server" ErrorMessage="Only Alphabets." ForeColor="Red"
ControlToValidate="TXTEMPNAME" ValidationExpression="[a-zA-Z]"></asp:RegularExpressionValidator>

Mark as Answer if its helpful to you

Kumaraspcode2009@gmail.com



Responses

Posted by: Rajnilari2015 on: 2/3/2016 [Member] [Microsoft_MVP] [MVP] Platinum | Points: 50

Up
0
Down

Resolved
@Jayakumars, please try
[a-zA-Z. ]


--
Thanks & Regards,
RNA Team

Jayakumars, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response