Nullable object must have a value

2 posts, 0 answers
  1. dingen
    dingen avatar
    34 posts
    Member since:
    Dec 2008

    Posted 22 Feb 2010 Link to this post

    Hi

    When i try to save my RadDateTimePicker.SelectedDate property with no date selected to the database, it returns with an error (which value should i assign to this RadDateTimePicker?):

    Nullable object must have a value?

    D



  2. robertw102
    robertw102 avatar
    265 posts
    Member since:
    Jul 2007

    Posted 24 Feb 2010 Link to this post

    Try using RadDateTimePicker.DbSelectedDate. It returns the date in a format that is database-friendly.

    I hope that helps.
Back to Top