【问题处理】Unable to cast object of type 'System.DBNull' to type 'System.String'.
问题
【.net报错】Unable to cast object of type 'System.DBNull' to type 'System.String'.
解决
if (objOperation != System.DBNull.Value)
{
e.Text = (string)objOperation;
}
原创
2017-07-05 16:45:53 ·
15650 阅读 ·
0 评论