明明感觉理论上没错,怎么就不行呢?

meng_fang 2006-12-21 04:13:09
<%if Session("IsAdmin") then%>
<%if Session("grpLevel")="0" then%>
<input name="NewProduct" onClick="javascript:location.href='addSales.asp'" type="button" class="button_all" id="NewClient" value="新建">
<%end if%>
<%else%> nothing

<%end if%>
...全文
155 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
plought 2006-12-21
  • 打赏
  • 举报
回复
把<%if Session("IsAdmin") then%>改成<%if not Session("IsAdmin") then%>试试!
meng_fang 2006-12-21
  • 打赏
  • 举报
回复
我让Session("IsAdmin")=true和Session("grpLevel")="0"时显示按钮,可是它却怎么输出的是
nothing?
weilf 2006-12-21
  • 打赏
  • 举报
回复
Session("IsAdmin") 你为什么不直接等于什么值,要么直接等于TRUE 或者FALSE,干吗让他孤零零的??他在抗议!
meng_fang 2006-12-21
  • 打赏
  • 举报
回复
当isAdmin为1,grpLevel为0时显示新建按钮,如果条件不满足就显示为nothing 。

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧