Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Importing Mixed DataTypes from Excel in ASP.NET

Status
Not open for further replies.

msturges

Programmer
Mar 29, 2001
32
ZA
Hi there,

I am encountering a problem importing data into my ASP.NET app from an Excel file where the column data could be either numeric or text(eg '20194567' or 'mikes'). If the initial couple of lines contain text in the said column it appears to convert all subsequent instances where the value is numeric to null?

I have tried formatting the column data in Excel as text in order to read it all in as type string, however the OleDbDataReader still passes a DBNull value back to my ASP.NET application for all instances where the cell's data value is numeric.

Any help would be greatly appreciated.

Thanks
Mike
 
Hi ca8msm,

Yes, it looks like the same problem. Unfortunately it doesn't seem to highlight the solution.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top