|
-
Oct 28th, 2003, 08:07 AM
#1
Thread Starter
Frenzied Member
Problem with datarow
Ok, Im iterating through a datatable, and I have a problem:
For Each dr In dt.Rows
Try
litShipNo.Text = CStr(dr("SHIPMENT_ID"))
etc etc...
as you can see Im casting every value to string because I want to show them as literate text. But I ahve a problem with when the column is of value DBNull, then I get an exception, and I am not sure how to handle it... can anyone give a suggestion?
kind regards
Henrik
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|