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.
Loading
VulpesPosted Oct 21, 2013, 5:24 AM
If 'dt' is your DataTable you should be able to get it with the expression:
dt.Columns["customerid"].DataType.ToString()
Prabu SparkPosted Oct 21, 2013, 5:13 AM
VulpesPosted Oct 21, 2013, 4:28 AM
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.