Welcome Guest Search | Active Topics | Sign In | Register

DatePicker binded to Database gives dbnull error Options
Daniel J. mostert
Posted: Thursday, January 20, 2011 7:50:10 AM

Rank: Newbie
Groups: Member

Joined: 7/13/2010
Posts: 4
Datepicker - gives dbnull error - but obviously the initial data in database will be null.
How dows one fix this problem.
Initial data will be null till new data is captured.

Please assist.
eo_support
Posted: Thursday, January 20, 2011 8:55:51 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

Try to bind to SelectedDateString instead of SelectedDate. SelectedDate is a DateTime value, it can not have null value. But SelectedDateString can.

Thanks!
Daniel J. mostert
Posted: Friday, January 21, 2011 1:10:13 AM

Rank: Newbie
Groups: Member

Joined: 7/13/2010
Posts: 4
I am using VB2010 - asp.net4 - usting it in detailsview - and when wanting to bind does not offer me the Selecteddatestring property. Properties it offer me as bindable after telling it show all properties is SelectedDate, SelectedDAtes, SelectedDaystyle.

Thank you for advise just had to modify xaml manually to above property name and whalla.
eo_support
Posted: Friday, January 21, 2011 7:51:27 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Great. Glad that you got it working!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.