7 March 2014

Validate Money Currency format in ASP.Net TextBox using Validators

<asp:TextBox ID="txt_Amount" runat="server"></asp:TextBox>
    <asp:RegularExpressionValidator ID="RegularExpressionValidator10" runat="server"
        ControlToValidate="txt_Amount" ErrorMessage="Please enter only numbers like 1000 or 1000.00"
        ValidationExpression="^\d+(\.\d\d)?$"></asp:RegularExpressionValidator>

1 comment:

  1. Thanks for sharing this quality information with us. I really enjoyed reading. Will surely going to share this URL with my friends. convert currency

    ReplyDelete