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 (Regex) for number with two decimal points in ASP.Net RegularExpression Validator <p>This way</p> <pre class="brush: xml"> &lt;asp:TextBox ID=&#34;TextBox1&#34; runat=&#34;server&#34; /&gt; &lt;asp:RegularExpressionValidator ID=&#34;Regex1&#34; runat=&#34;server&#34; ValidationExpression=&#34;(?:\d*\.\d{1,2}|\d+)$&#34; ErrorMessage = &#34;Please enter valid decimal number with 2 decimal places.&#34; ControlToValidate=&#34;TextBox1&#34; /&gt; &lt;asp:Button Text=&#34;Validate&#34; runat=&#34;server&#34; /&gt;</pre> <p>Regex Ref: http://stackoverflow.com/questions/468655/javascript-decimal-place-restriction-with-regex</p>https://www.aspforums.net:443/Threads/494278/Regular-Expression-Regex-for-number-with-two-decimal-points-in-ASPNet-RegularExpression-Validator/https://www.aspforums.net:443/Threads/494278/Regular-Expression-Regex-for-number-with-two-decimal-points-in-ASPNet-RegularExpression-Validator/Sat, 28 Jun 2014 00:22:44 GMT