在asp中经常用到的判断为空

比如 if rs("某个字段")="" then 或者是 if rs("某个字段")<>"" then

这个方法有的时候用不对

还有一种判断是否为空的

那就是 isnull()函数

比如 if isnull(rs("某个字段")) then 如果为空

如果不为空 if not isnull(rs("某个字段")) then



关键词 isnull 判断是否为空 asp