Hey All,
I have a special events list. The list has the event name and a date. The list gets rendered to screen inside of an ASP.NET repeater. My repeater uses an ArrayList of objects as it's data source. The object is "SpecialEvent" with "EventName" and "EventDate" data members. DateTime objects are garbage in VB so I use a custom Long, with the date/time being "yyyyMMddHHmmss".
My question is what value do I need to return from this object to set a null value? Currently I was checking
If LongDateTime = -1 Then
Return Nothing
But that seems to be resolved to 1/1/1 0:00:00 AM by the datbind method in my repeater. What is the best "Nothing" value to use with the RadDateTimePicker to stop this pesky error from happening?
Thanks,
Rob
I have a special events list. The list has the event name and a date. The list gets rendered to screen inside of an ASP.NET repeater. My repeater uses an ArrayList of objects as it's data source. The object is "SpecialEvent" with "EventName" and "EventDate" data members. DateTime objects are garbage in VB so I use a custom Long, with the date/time being "yyyyMMddHHmmss".
My question is what value do I need to return from this object to set a null value? Currently I was checking
If LongDateTime = -1 Then
Return Nothing
But that seems to be resolved to 1/1/1 0:00:00 AM by the datbind method in my repeater. What is the best "Nothing" value to use with the RadDateTimePicker to stop this pesky error from happening?
Thanks,
Rob