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.Regular expression for validate Mobile number using RegularExpressionValidator in ASP.Net<p>Hi <a class="username" rel="Mahesh1986"> Mahesh1986</a>,</p> <p>Refer the below sample.</p> <p><span style="text-decoration: underline;">HTML</span></p> <pre class="brush: html">&lt;asp:TextBox runat=&#34;server&#34; ID=&#34;txtMobileNumber&#34; /&gt; &lt;br /&gt; &lt;asp:RequiredFieldValidator ID=&#34;rfvMobNo&#34; runat=&#34;server&#34; ErrorMessage=&#34;Required&#34; Display=&#34;Dynamic&#34; ValidationGroup=&#34;Validate&#34; ForeColor=&#34;Red&#34; ControlToValidate=&#34;txtMobileNumber&#34;&gt;&lt;/asp:RequiredFieldValidator&gt; &lt;asp:RegularExpressionValidator ID=&#34;revMobNo&#34; runat=&#34;server&#34; ErrorMessage=&#34;Invalid Mobile Number.&#34; ValidationExpression=&#34;^([0-9]{10})$&#34; ControlToValidate=&#34;txtMobileNumber&#34; ValidationGroup=&#34;Validate&#34; ForeColor=&#34;Red&#34; Display=&#34;Dynamic&#34;&gt;&lt;/asp:RegularExpressionValidator&gt; &lt;br /&gt; &lt;asp:Button Text=&#34;Submit&#34; runat=&#34;server&#34; OnClick=&#34;Submit&#34; ValidationGroup=&#34;Validate&#34; /&gt;</pre> <p><span style="text-decoration: underline;">Screenshot</span></p> <p><img src="http://i.imgur.com/TvsV3gv.gif" alt="" width="237" height="138" /></p>https://www.aspforums.net:443/Threads/148236/Regular-expression-for-validate-Mobile-number-using-RegularExpressionValidator-in-ASPNet/https://www.aspforums.net:443/Threads/148236/Regular-expression-for-validate-Mobile-number-using-RegularExpressionValidator-in-ASPNet/Fri, 14 Jul 2017 06:08:18 GMT