Rick
asked on
asp.net - checking for Null values in datatables
This line is giving me, "Conversion from type 'DBNull' to type 'String' is not valid."
strString = dt.Compute("SUM(Column1)", String.Empty)
How do I check for DBNull in a dataset?
Thank you.
strString = dt.Compute("SUM(Column1)",
How do I check for DBNull in a dataset?
Thank you.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
http://stackoverflow.com/questions/222834/handling-dbnull-data-in-vb-net
Note: is dt a datatable? Please provide more code