Save blank date

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

    Posted 26 Sep 2009 Link to this post

    HI,

    I save blank date using date plicker. When i retrive date from using  '<% Bind("DateP")%>' it show  1900,01,01. I want stop that. If date blank i want show blank space. How can i do that?  Before save its show blank dates. But when i save some data with blank dates its show that date

    lakmal
  2. Martin
    Admin
    Martin avatar
    811 posts

    Posted 28 Sep 2009 Link to this post

    Hello Lakmal,

    I tried to reproduce the behavior you reported but without success. Please try the following code and let us know if you still get the issue:

    <telerik:RadDatePicker runat="server" ID="RadDatePicker1" AutoPostBack="true"
        </telerik:RadDatePicker> 
        <br /> 
        <asp:Label runat="server" Text='<%# RadDatePicker1.SelectedDate %>' ID="Label1"></asp:Label> 

    And in the code behind:

    protected void Page_Load(object sender, EventArgs e) 
        { 
            this.DataBind(); 
        } 

    I hope this helps

    Regards,
    Martin
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top