This is a migrated thread and some comments may be shown as answers.

Save blank date

1 Answer 52 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
lakmal
Top achievements
Rank 2
lakmal asked on 26 Sep 2009, 08:52 AM
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

1 Answer, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 28 Sep 2009, 02:30 PM
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.
Tags
Calendar
Asked by
lakmal
Top achievements
Rank 2
Answers by
Martin
Telerik team
Share this question
or