Author: eljhonb | Posted on: 6/24/2010 9:21:23 AM | Views : 261

hi all,
i have this situation:
i have 3 textbox, named txtnum, txtdata1 and txtdata2 and i have a comparevalidation control on txtdata1 and txtdata2. This validation works good but i have a problem, i want to trigger the validation just if txtnumdoc is empty, another way is not important the txtdata1 and txtdata2 values.
how can i do this?
thx in advance


if could be important, this is the comparevalidation code
<asp:CompareValidator ID="validateData" runat="server" ControlToValidate="txtdata1" ControlToCompare="txtdata2" Type="Date" Operator="lessthanequal" Display="Dynamic" ErrorMessage="Error"> </asp:CompareValidator>


...

Go to the complete details ...