<asp:TextBox ID="date_from" runat="server" TextMode="DateTime" Width="80px"></asp:TextBox><asp:ImageButton runat="Server" ID="ImageButton1" ImageUrl="~/images/ico_calendar.gif" AlternateText="Click here to display calendar" /> <cc1:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="date_from" PopupButtonID="ImageButton1" Format="dd/MM/yyyy" TodaysDateFormat="dd/MM/yyyy"></cc1:CalendarExtender>
<asp:TextBox ID="date_to" runat="server" TextMode="DateTime" Width="80px"></asp:TextBox> <asp:ImageButton runat="Server" ID="ImageButton2" ImageUrl="~/images/ico_calendar.gif" AlternateText="Click here to display calendar" /> <cc1:CalendarExtender ID="CalendarExtender2" runat="server" TargetControlID="date_to" PopupButtonID="ImageButton2" Format="dd/MM/yyyy" TodaysDateFormat="dd/MM/yyyy"></cc1:CalendarExtender>
<asp:CompareValidator ID="CompareValidator1" runat="server" ErrorMessage="From Date must be earlier than To Date" ControlToCompare="date_from" ControlToValidate="date_to" type="Date" Operator="GreaterThanEqual" display="Dynamic" enableclientscript="true" cultureinvariantvalues="true" ForeColor="red"></asp:CompareValidator>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)