D
David C
I have an Ajax calendar extender control and I am trying to get it to
default to the date in a text box but it shows todays date when it displays
instead of the date in the TextBox. Below is my code for someone to help.
Thanks.
David
<asp:TextBox ID="txtPromisedDate" runat="server" Text='<%#
Bind("PromisedDate", "{0:d}") %>' Width="90" />
<cc1:CalendarExtender ID="CalendarExtender1" runat="server"
SelectedDate='<%# Eval("PromisedDate") %>'
TargetControlID="txtPromisedDate">
</cc1:CalendarExtender>
default to the date in a text box but it shows todays date when it displays
instead of the date in the TextBox. Below is my code for someone to help.
Thanks.
David
<asp:TextBox ID="txtPromisedDate" runat="server" Text='<%#
Bind("PromisedDate", "{0:d}") %>' Width="90" />
<cc1:CalendarExtender ID="CalendarExtender1" runat="server"
SelectedDate='<%# Eval("PromisedDate") %>'
TargetControlID="txtPromisedDate">
</cc1:CalendarExtender>