Hi All,
I have a text box with multiple compare validator
controls. one for checking below range and other for above range and
other for valid format. When user enters value in correct format evey
thing working fine. If he enters an invalid format value then all the
three validations are firing.
My requirement is to show individual
messages for the ranges. Although this can be done by writing custom
validations. I feel the above way is a bit easy for me as my validations
and forms are dynamically generated based on db configuration
Here
is the sample code to check. Please let me know if iam missing
anything.
<div>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox><asp:CompareValidator ID="CompareValidator3"
runat="server" ControlToValidate="TextBox1" Type="Double" Display="Dynamic&qu ...
Go to the complete details ...