Click here to Skip to main content
15,908,776 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am uploading a CSV file in my project, which contains value 140+67. While I am validating the columns in VB.net, it gives dbnull value .
I don't know how to fetch this particular value.

Please help me out. :(
Posted
Updated 17-Sep-10 22:30pm
v2
Comments
Sandeep Mewara 18-Sep-10 4:30am    
Avoid using text speak.
Simon_Whale 18-Sep-10 6:37am    
could do with a line from the file and the code that you are using to upload the file. Other questions are like is the csv file from a 3rd party? can you get them to change the format?

1 solution

In pseudo code

Test for DBNull.Value
if it is, use something else e.g. "N/A"
if not
use value.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900