专注收集记录技术开发学习笔记、技术难点、解决方案
网站信息搜索 >> 请输入关键词:
您当前的位置: 首页 > 网页设计

asp排序方式解决不了解决方案

发布时间:2010-05-20 14:01:29 文章来源:www.iduyao.cn 采编人员:星星草
asp排序方式解决不了
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<%
dim rst
Set Rst=Conn.Execute("Select * From Class Where Layout='Faq' and ParentID="& Rs("ClassID") &" order by RootID,OrderID")
i=1
Do While Not Rst.Eof
%>
<tr>
   
  <td class="left_c2">&nbsp;&nbsp;<img src="Images/icon_02.gif" width="9" height="9" />&nbsp;
<a href="faq-line.asp?classid=<%=rst("ClassID")%>" target="_parent"><%=Rst("ClassName")%></a>
</td>
  </tr>
  <tr>
  <td height="1" background="Images/dot_01.gif"><img src="Images/space.gif" width="1" height="1" /></td>
  </tr>  
  <%
Rst.MoveNext
Loop
Rst.Close
Set Rst=Nothing
%>
  </table>

------解决方案--------------------
<table>
<% 
dim rst 
Set Rst=Conn.Execute("Select * From Class Where Layout='Faq' and ParentID="& Rs("ClassID") &" order by RootID,OrderID") 
i=1 
Do While Not Rst.Eof 
%><tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">

<tr>
<td class="left_c2">&nbsp;&nbsp; <img src="Images/icon_02.gif" width="9" height="9" />&nbsp; <a href="faq-line.asp?classid= <%=rst("ClassID")%>" target="_parent"> <%=Rst("ClassName")%> </a> </td>
</tr>
<tr>
<td background="Images/dot_01.gif"><img src="Images/space.gif" width="1" height="1" /> </td>
</tr>

</table></td>
</tr> <% 
Rst.MoveNext 
Loop 
Rst.Close 
Set Rst=Nothing 
%>
</table>
友情提示:
信息收集于互联网,如果您发现错误或造成侵权,请及时通知本站更正或删除,具体联系方式见页面底部联系我们,谢谢。

其他相似内容:

热门推荐: