摘要: 如果数据库中的某一个字段值是Null,那么我们在前台页面进行调用显示的时候,我们会出现如题的错误提示,那么我们用什么方法可以K掉他呢?OK,Look Like this:IfNot ds.Tables("file").Rows(0).Item(5).GetType Is System.DBNull.Value.GetType ThenOrIf not rs("advert") is DBNull.Value then当然我们也可以在绑定的时候用:VB.net 的IIF(ds.Tables("file").Rows(0).Item(5) 阅读全文
posted @ 2009-05-13 09:01 Devil_Zhang 阅读(1690) 评论(0) 推荐(0) 编辑