This is a migrated thread and some comments may be shown as answers.
RadDateInput SelectedDate='<%#DateTime.Now%>' does not work
1 Answer 38 Views
This is a migrated thread and some comments may be shown as answers.
Adam
Top achievements
Rank 1
Adam asked on 06 Feb 2010, 07:30 PM
Here's the line of code:

<telerik:RadDateInput Label="Order Date:" width="700" ID="RadDateInput1"
DateFormat="MM/dd/yy" ForeColor="GrayText"
SelectedDate='<%#DateTime.Now%>'
runat=server /> 
 

When the control is rendered to the page.  The DateInput is empty.  I would expect it to be today's date. 

Ideas?

atk

1 Answer, 1 is accepted

Sort by
0
Adam
Top achievements
Rank 1
answered on 07 Feb 2010, 01:38 AM
This was my fault.  I didn't have the Page.DataBind() method called in my Page_Init event.  Sorry.

EOT
Asked by
Adam
Top achievements
Rank 1
Answers by
Adam
Top achievements
Rank 1
Share this question
or