查看: 2746|回复: 1

[求代码] 求写一段asp代码

[复制链接]
晨跑去 发表于 2015-3-19 15:35:51 | 显示全部楼层 |阅读模式
求写一个asp网页,仅限于id:1的用户才能访问,不是id1的用户,禁止访问,不用读取数据库,已经有session了,高手帮帮忙啦
ttasp 发表于 2015-3-19 15:57:09 | 显示全部楼层

  1.     <%
  2. if session("uname")<>"id1" then

  3. response.write "<script language=JavaScript>top.location.href =' err.html'; </script>"
  4. Response.end()
  5. end if

  6. 'err.html是错误提醒页面,提醒无权访问该网页
  7.   
  8.    %>
复制代码
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表

在线客服

售前咨询
售后咨询
服务热线
023-58418553
微信公众号