读书人

为什么quot;If Request.Cookies(quot;CQC_User

发布时间: 2012-02-10 21:27:41 作者: rapoo

为什么"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

读书人网 >asp.net

热点推荐