"出现FormatException了未处理"输入字符串的不正确的格式字符串、不正确、格式、未处理

由网友(南岸少年)分享简介:我有一个错误在我的网站,并试图解决错误:格式的例外是未处理这样,它为日期和时间,以及工作与字符串和整数。请看到这个链接 http://tinyurl.com/ydg3u7s 感谢解决方案 返回Convert.ChangeType(IsThisObjectANull,数据类型code);的转换可能失败是由于不兼容...

我有一个错误在我的网站,并试图解决错误:格式的例外是未处理 这样,它为日期和时间,以及工作与字符串和整数。

请看到这个链接 http://tinyurl.com/ydg3u7s

感谢

解决方案

 返回Convert.ChangeType(IsThisObjectANull,数据类型code);
 

的转换可能失败是由于不兼容的类型。您可能需要调试和检查,当出现这种情况。

System.FormatException 类型的未经处理的异常在 mscorlib.dll 中发生

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 .

阅读全文

相关推荐

最新文章