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.
Problem in accessing 4 decimal values while uploading excel
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

VulpesRank #55 · 29.2K reputationPosted Oct 21, 2013, 12:28 AM EDT
That works fine as long as there's only one decimal point but fails if there are multiple decimal points in the field.
If that's in fact what you're trying to do, then you'll need to load the field into a string variable instead.
Prabu Spark114 reputationPosted Oct 21, 2013, 1:13 AM EDT
VulpesRank #55 · 29.2K reputationPosted Oct 21, 2013, 1:24 AM EDT
If 'dt' is your DataTable you should be able to get it with the expression:
dt.Columns["customerid"].DataType.ToString()