注册 登录
编程论坛 ASP.NET技术论坛

ASP判断ID的语句该怎么写?谢谢了!

ftsm 发布于 2013-01-02 20:36, 616 次点击
<div class="productclass_dolphin">
 <%
 dim rse,did
 set rse=server.CreateObject("adodb.recordset")
 rse.open "select * from shop_fl where sid = 0 order by px_id asc",conn,1,1
 while not rse.eof
 did = rse("id")
 %>
 <a href="<%=root%>/products/shopmore.asp?id=<%=rse("id")%>" class="productclass_dolphin"><%=rse("title")%></a>
 <%
这个段代码是读出ID 生成 <a href="<%=root%>/products/shopmore.asp?id=<%=rse("id")%>" class="productclass_dolphin"><%=rse("title")%></a> 这段连接来
我想写 判断ID后 生成不同的productclass_dolphin 样式表! 这个该怎么写呀 谁能给个例子,谢谢了  例如class="productclass_dolphin class="productclass_dolphin2  .........等

1 回复
#2
awl8052013-01-02 22:08
你查看你上一个帖子
1