ASP COOKIES 为空 出错处理

定义一个函数:

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


这样处理

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

posted @ 2013-01-07 11:21  网络剑客  阅读(141)  评论(0)    收藏  举报