[英]“FormatException was unhandled” Input string was not in a correct format
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 请通过此链接查看详细信息和代码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 . 您可能需要调试并检查何时发生。
也许一些尝试/捕获机制?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.