ASP语言代码求助,急啊~~~~~~~~~

来源:百度知道 编辑:UC知道 时间:2024/06/22 20:44:30
<%If Trim(Session("customer_login"))<>"" Then%>
<a href="#" onClick="window.open('shopcar.asp?ppid=<%=rsx("goods_ID")%>','','menubar=no,toolbar=no,location=no,directories=no,status=no,width=606,height=325,left=100,top=100,scrollbars=no');">【定购】</a>
<%End If%>

我想给这个“定购”的按钮加个条件,就是当我的数据库内customer_state列表的用户信息为数字2的时候,点击“定购”会转到错误提示界面
是customer_info表中的一列 customer_state

<%If Trim(Session("customer_login"))<>"" Then
if rsx("customer_state")<>2 then
%>
<a href="#" onClick="window.open('shopcar.asp?ppid=<%=rsx("goods_ID")%>','','menubar=no,toolbar=no,location=no,directories=no,status=no,width=606,height=325,left=100,top=100,scrollbars=no');">【定购】</a>
<%else%>
<a href="错误提示的地址">【定购】</a> <%End If
End If%>