RadDateInput SelectedDate='<%#DateTime.Now%>' does not work

2 posts, 0 answers
  1. Adam
    Adam avatar
    2 posts
    Member since:
    Jun 2009

    Posted 06 Feb 2010 Link to this post

    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

  2. Adam
    Adam avatar
    2 posts
    Member since:
    Jun 2009

    Posted 06 Feb 2010 Link to this post

    This was my fault.  I didn't have the Page.DataBind() method called in my Page_Init event.  Sorry.

    EOT
Back to Top