Hi there,
Take a look at the IsDBNull method of the data readers:
http://msdn2.microsoft.com/en-US/lib....isdbnull.aspx
It allows you to check whether a column is null *before* you assign it to the string. Then you got the chance to assign something different to the string instead.
Cheers,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of
ASP.NET 2.0 Instant Results and
Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out
this post.