Posted on: 11/23/2012 1:32:30 AM | Views : 387

hi friends,
I have been busy finding out the problem with compare validator on server. There are two fields by the name Date From and Date To.
I am pasting the code here:

<asp:TextBox ID="txtDateFrom" runat="server" CssClass="form_bg1"></asp:TextBox> <cc1:CalendarExtender ID = "cex" runat="server" TargetControlID="txtDateFrom" Format="dd-MM-yyyy"></cc1:CalendarExtender> <cc1:TextBoxWatermarkExtender ID="exDateFrom" runat="server" TargetControlID="txtDateFrom" WatermarkText="Date From"> </cc1:TextBoxWatermarkExtender> 
<asp:TextBox ID="txtDateTo" runat="server" CssClass="form_bg1"></asp:TextBox> <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="txtDateFrom&quo ...

Go to the complete details ...