<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
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 Kumaraspcode2009@gmail.comS.Preeti, if this helps please login to Mark As Answer. | Alert Moderator
Mark as Answer if its helpful to you Kumaraspcode2009@gmail.comS.Preeti, if this helps please login to Mark As Answer. | Alert Moderator
Mark as Answer if its helpful to you Kumaraspcode2009@gmail.com
Login to post response