<asp:TextBox ID="txtid1" runat="server" MaxLength="15" ClientIDMode="Static"> <asp:RegularExpressionValidator ID="valAmountMaxValue" runat="server" ValidationExpression="^\$?[0-9]{1,3}([,][0-9]{3})?([,][0-9]{3})?(\.[0-9]{2})$" ControlToValidate="txtid1" ErrorMessage="" Display="None" /> <asp:CompareValidator ID="valAmountFromMustbeLessThanAmountTo" runat="server" ErrorMessage="" ControlToValidate="txtid1" ControlToCompare="txtid2" Type="Double" EnableClientScript="False" Operator="LessThanEqual" Display="None" /> <asp:Label ID="lblAmountTo" runat="server" AssociatedControlID="txtAmountTo"> to <asp:TextBox ID="txtid2" runat="server" MaxLength="15" placeholder="Optional" ClientIDMode="Static"> Up is my code .. i have two textbox where i have to validation for CompareValidator and RegularExpression. but i want a single message instead of both validation message.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)