ASP COOKIES 为空 出错处理

来源:互联网 发布:巴丁算法 编辑:程序博客网 时间:2024/05/29 00:30

定义一个函数:

function nullstr(str)
if isnull(str) then
nullstr=""
else
nullstr=str
end if
end function


这样处理

response.Cookies("Admin_level")=nullstr(Rs("level"))

原创粉丝点击