ASPForums.Net RSS Feedhttp://www.aspforums.net/Handlers/RSS.ashxLatest additions to the content that appears on ASPForums.Net(c) 2019 www.aspforums.com. All rights reserved.Validate PAN number in ASP.Net TextBox using Regular Expression<p>Pan Card Contain Alphanewmeric characters and of length 10.</p> <p>You can use Regular Expression like this</p> <pre class="brush: html">&lt;asp:TextBox ID=&#34;txtPanCard&#34; runat=&#34;server&#34; /&gt; &lt;asp:RegularExpressionValidator ErrorMessage=&#34;Please enter correct pan card number&#34; ControlToValidate=&#34;txtPanCard&#34; runat=&#34;server&#34; ValidationExpression=&#34;^[a-zA-Z0-9]{10}$&#34; /&gt;</pre> <p>&nbsp;</p>https://www.aspforums.net:443/Threads/116803/Validate-PAN-number-in-ASPNet-TextBox-using-Regular-Expression/https://www.aspforums.net:443/Threads/116803/Validate-PAN-number-in-ASPNet-TextBox-using-Regular-Expression/Tue, 11 Nov 2014 04:33:31 GMT