"出现FormatException了未处理"输入字符串的不正确的格式 [英] "FormatException was unhandled" Input string was not in a correct format
本文介绍了"出现FormatException了未处理"输入字符串的不正确的格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个错误在我的网站,并试图解决错误:格式的例外是未处理 这样,它为日期和时间,以及工作与字符串和整数。
请看到这个链接 http://tinyurl.com/ydg3u7s <详细信息和code / P>
感谢
解决方案
返回Convert.ChangeType(IsThisObjectANull,数据类型code);
的转换可能失败是由于不兼容的类型。您可能需要调试和检查,当出现这种情况。
I have an error in my website and trying to resolve: Error "format exception was unhandled" such that it work for both date time as well as with string and integer.
Please see the details and code from this link http://tinyurl.com/ydg3u7s
Thanks
解决方案
return Convert.ChangeType(IsThisObjectANull, DataTypeCode);
The conversion is probably failing due to incompatible types . You might have to debug and check when this happens .
这篇关于&QUOT;出现FormatException了未处理&QUOT;输入字符串的不正确的格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文