Click here to Skip to main content
15,914,342 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi sir,
Problem in accessing 4 decimal values while uploading excel into asp.net c#. I have created one website that upload one excel file containing one field 'customerid' as "5.53861.11.11.100126", but it shows null value while the other values like "1.14026836"
showing the correct values in 'customerid' field.

My question is why i cant able to read the 'customerid' field as "5.53861.11.11.100126". I can able to read the value "1.14026836". Kindly give me the solution for this problem.
Posted
Comments
Timberbird 21-Oct-13 3:45am    
Ah, these common Excel problems. I'm not sure which one you are experiencing, but you could try the following:
1) Check the type of the cell in the Excel file. You may want to explicitly set it to Text.
2) Try reading different cell properties: as far as I rememeber, there are at least Text, Value and Value2.

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