<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %> <pre lang="xml"><td align="center" style="border: solid 1px #ddd"> <asp:Label runat="server" ID="LabelBoxShiftDate" Text='<%# Bind("DateReported") %>' Visible='<%# Eval("DateReported") != null %>' /> <asp:TextBox runat="server" ID="TextBoxShiftDate" Text='<%# Bind("DateReported") %>' Visible='<%# Eval("DateReported") == null %>' /> <cc1:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="TextBoxShiftDate"> </cc1:CalendarExtender> <asp:CompareValidator runat="server" ID="CompareValidatorDate" ControlToValidate="TextBoxShiftDate" Operator="DataTypeCheck" Type="Date" ErrorMessage="Please enter a valid date" /> </td>
style="border: solid 1px #ddd; padding: 0px; height: auto;"
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)