能給給我個 asp的橫向記錄集顯示 並且帶有分頁的 思路.謝謝大家.
1樓:網友
樓主和我以前一樣,用table去操作橫向,用div去操作橫向吧。
直接輸出:你的內容。
就是橫向的了,不用去確定什麼時候換下一行的問題。
至於分頁,我在經過無數次的折騰之後,用上了葉子分頁類。過年了,不要折騰了。。。
asp記錄輸出橫向排列問題
2樓:
<%call piclink(3)'每排顯示3個sub piclink(colnum)
str2="select top 6 * from tab_snews order by nes_id desc"
set rs2="")
str2,conn,1,1
if then
資訊正在整理中!
elsedo while not
for i=1 to colnum
if not then
**位址。else"end if
next"loop
end if
set rs2=nothing
end sub
asp如何橫向顯示?
3樓:網友
<%set rs= "")
sql,conn,1,1
if and then
沒有任何企業。
elsecol = 5
ii =1><%do while not >
target="_blank">
=rs("address")%>
'換行if ii mod col=0 then"
end if
ii=ii+1
loop><%end if
4樓:網友
乙個簡單的。
乙個div設一下style
中的width
加float:left
顯示幾個,你只要調width
asp顯示記錄集的總數
5樓:網友
光有包含檔名是沒有用的,還得有資料庫連線物件名,才行,自己開啟查詢。
set conn=""),這句,看看set後面是不是conn不是的話自己修改一下,這裡**假設連線物件是conn,而且,沒有說明這三個欄位是什麼型別的,如果是text欄位,還需判斷是否為非null的空字串,則sql語句需做相應修改。
以下是完整**。
dim sql,rs,yjscount,ynscount,yyscount
set rs="")
sql="select count(*)as rcount from tongji where not yjs is null"
sql,conn,1,1
yjscount = rs("rcount")
sql="select count(*)as rcount from tongji where not yns is null"
sql,conn,1,1
yjscount = rs("rcount")
sql="select count(*)as rcount from tongji where not yys is null"
sql,conn,1,1
yjscount = rs("rcount")
set rs=nothing
yjs欄位不為空記錄數:" & yjscount & "
"yns欄位不為空記錄數:" & ynscount & "
"yys欄位不為空記錄數:" & yyscount & "
asp 怎麼樣才能使輸出內容為橫向
6樓:網友
%for i=1 to 1%>加這個。
比如一行2個改成<%for i=1 to 2%>
asp資料橫向顯示
7樓:網友
你這樣試試看:
最新加入企業
set rs="")
select top 5 id,username,area_one,area_two,company,verify from company where verify=0 order by id desc",conn,1,1
if and then
elsedo while not
.html" target="_blank"><%=rs("company")%>
地區分類:<%=rs("area_one")%>=rs("area_two")%>
loopend if
set rs=nothing
set conn=nothing
8樓:網友
把你那迴圈讀取放到最裡面那個table的外面試下。
9樓:網友
你截張圖,你想要什麼樣子的,你一句橫著,我不知道什麼地方橫著。
asp 記錄集 按指定輸出列 ..
10樓:庭階風入詩
你輸出的時候,會按照你的order by的欄位來排序~
asp的問題新增記錄
用insert語句容易出錯,很多時候是缺少空格的問題,你可以試試在 兩邊都加上空格 可以不用insert語句而用rs的addnew方法如下set rs server.createobject adodb.recordset rs.open replyarticle conn,1,3rs.addnew...
asp能新增,刪除資料庫記錄,但無法修改
sql語句。strsql select from c zl where 專利編號 zhuanlibianhao strsql,conn,, 你這裡取得的記錄集為空造成的。沒有符合條件 專利編號 zhuanlibianhao 的記錄 此時 and 記錄集中無任何記錄,你再進行objrs 法律狀態 fa...
ASP如何確定傳過來的id是屬於記錄表中的第幾個
用這個傳過來的id為索引,再查詢一邊不就知道了。1.你把表單名定址方式更改,2.直接用陣列.不能刪除指定id的原因 window.location.href delete grade.asp?id rst s id 此句在傳遞id過程中,id值為空,可能是你前面已經rst.close了,所以指令傳到...