S
Spotnick
When I found out about the detailsview control, I thought it would save me a
lot of time when doing basic table updates.
All my business logic layer uses strongly-typed datasets, and I did plug a
detailsview using an objectdatasource, seems to work fine, until the
database returned a DBNull.
The error I got is:
Property accessor 'WebsiteUrl' on object 'ArtistDataSet+ArtistRow' threw the
following exception:'The value for column 'WebsiteUrl' in table 'Artist' is
DBNull.'
Of course what is the error is a cast error between System.String and DBNull
But seriously? Aren't there any way at all to avoid this error? Otherwise I
can't use detailsview or formview at all.
Thank you.
lot of time when doing basic table updates.
All my business logic layer uses strongly-typed datasets, and I did plug a
detailsview using an objectdatasource, seems to work fine, until the
database returned a DBNull.
The error I got is:
Property accessor 'WebsiteUrl' on object 'ArtistDataSet+ArtistRow' threw the
following exception:'The value for column 'WebsiteUrl' in table 'Artist' is
DBNull.'
Of course what is the error is a cast error between System.String and DBNull
But seriously? Aren't there any way at all to avoid this error? Otherwise I
can't use detailsview or formview at all.
Thank you.