How to use PAN validation ??? [Resolved]

Posted by S.Preeti under ASP.NET on 9/30/2012 | Points: 10 | Views : 2893 | Status : [Member] | Replies : 3
how to use pan validation in asp.net
plz explain with an example.




Responses

Posted by: Ranjeet_8 on: 9/30/2012 [Member] [MVP] Gold | Points: 50

Up
0
Down

Resolved
Try this,

<asp:TextBox ID="txt_PanNo" runat="server" MaxLength="10"></asp:TextBox>
<asp:RegularExpressionValidator ID="REV_txt_PanNo" runat="server"
ErrorMessage="Enter valid pan number! " ControlToValidate="txt_PanNo"
SetFocusOnError="true" ValidationExpression="[A-Z]{5}\d{4}[A-Z]{1}">
</asp:RegularExpressionValidator>
<br/>(case sensitive) eg:- ASDFG1234C


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

Posted by: Jayakumars on: 9/30/2012 [Member] [MVP] Bronze | Points: 25

Up
0
Down
hi

refer this

http://www.codeproject.com/Questions/114796/Regular-expression-for-Validating-PAN-No
http://www.dotnetspark.com/kb/872-validate-pan-excel-through-vba-macro.aspx
http://www.dotnetspider.com/resources/33606-Pan-Card-Validation.aspx


Mark as Answer if its helpful to you

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

Posted by: Jayakumars on: 9/30/2012 [Member] [MVP] Bronze | Points: 25

Up
0
Down
hi
Please mark as answer if it helpful to you.

Mark as Answer if its helpful to you

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

Login to post response