首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

为什么"If Request.Cookies("CQC_UserLev").Value Is Nothing Then"

2012-02-10 
为什么If Request.Cookies(CQC_UserLev).Value Is Nothing Then语句无效?IfRequest.Cookies( CQC_Use

为什么"If Request.Cookies("CQC_UserLev").Value Is Nothing Then"语句无效?
If   Request.Cookies( "CQC_UserLev ").Value   Is   Nothing   Then
                        Label1.Text   =   "您无权做此修改! "
                        Return
                End   If
这个无效,还是继续执行呀.....

[解决办法]
不太明白楼主的意思
不过应当先判断
if not Request.Cookies( "CQC_UserLev ") is nothing then
dim _cookie as httpcookie=request.cookies( "cqc-userlev ")
end if

热点排行