从asp.net中的Excel工作表读取一组数值后,读取字符串时获取空字符串 [英] Getting Empty string when reading a string after reading a set of numeral values from an Excel sheet in asp .net

查看:70
本文介绍了从asp.net中的Excel工作表读取一组数值后,读取字符串时获取空字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hii Dears





当我在asp .net应用程序中阅读excel表时,我遇到了一些问题。 />
excel表包含同一列中的数字和字母。(例如:123.65,234,V45.09,...)

当我尝试读取值时读取一组数字值(123.65,234,...)后的V45.09我得到空字符串而不是像V45.09那样输入正确的值....但是如果我把值V45.09放在第一行excelsheet我能够读取值V45.09和所有其他值..

你可以给我任何解决这个问题的方法..





提前致谢

解决方案

获得解决方案.........

............................................... ....:D


Hii Dears


When ever I am reading an excel sheet in my asp .net application I got some problem.
The excel sheet contains both numbers and Letters in same column.(eg: 123.65, 234, V45.09, ...)
When ever I try to read the value like V45.09 after reading a set of numeral values ( 123.65, 234, ...) I got empty string instead of geting the correct value like V45.09.... but if I put the value V45.09 in the first row of the excelsheet I am able to read the value V45.09 and all other values..
could you please give me any solution for this problem..


Thanks in advance

解决方案

Got the solution.........
................................................... :D


这篇关于从asp.net中的Excel工作表读取一组数值后,读取字符串时获取空字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆