| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 385 人关注过本帖
标题:請問ASP如何編號?
只看楼主 加入收藏
unix
Rank: 1
等 级:新手上路
帖 子:134
专家分:0
注 册:2005-12-28
收藏
 问题点数:0 回复次数:1 
請問ASP如何編號?

<!--#include file="xh_conn.asp"-->
<!--#include file="chksession.asp"-->
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="css.css" rel="stylesheet" type="text/css">
<%
set rs=server.CreateObject("adodb.recordset")
rs.open "SELECT * from jibenxinxi where dateadd(d,10,chutuday)>=getdate() and baojia=0",db,1,1
if rs.recordcount=0 then
response.write "近十天没有数据"
response.End()
end if

%>
<style type="text/css">
<!--
table {
font-size: 11pt;
text-decoration: none;
border: 1px solid #000000;
}
-->
</style>
<style type="text/css">
<!--
a {
font-size: 11pt;
color: #000000;
text-decoration: none;
}
-->
</style>
</head>

<body>
<table width="753" border="0" align="center" cellpadding="5" cellspacing="0">
<tr align="center" bgcolor="#006699">
<td colspan="10"><font color="#FFFFFF"><strong>近十天,已出圖,未報價項目</strong></font></td>
</tr>
<tr align="center">

<td width="73"><strong>联络号</strong></td>
<td width="146"><div align="center"><strong>型号</strong></div></td>
<td width="84" nowrap><strong>出圖日期</strong></td>
<td width="36" nowrap><strong>情況</strong></td>
<td width="64" nowrap><strong>營業者</strong></td>
<td width="71" nowrap><strong>客戶納期</strong></td>
</tr>
<%do while not rs.eof%>
<tr>

<td align="center" nowrap><div align="center"><a href="bao_jia_gong_jian.asp?lianluo=<%=rs("lianluo")%>"> <%=rs("lianluo")%> </a></div></td>
<td nowrap><div align="center"><%=rs("types")%></div></td>
<td nowrap><div align="center"><%=rs("chutuday")%></div></td>
<td nowrap><div align="center"><%=rs("qingkuang")%></div></td>
<td nowrap><div align="center"><%=rs("yingyezhe")%></div></td>
<td nowrap><div align="center"><%=rs("naqi")%></div></td>
<td width="51" align="center"><a href="bao_jia.asp?lianluo=<%=rs("lianluo")%>">報價</a></td>
<td width="75" align="center"><a href="del_bao_jia.asp?lianluo=<%=rs("lianluo")%>">刪除</a>
</tr>

<%
rs.movenext
loop
%>
</table>
<br>
</body>
</html>


因為輸出數據是多行,現在點刪除時會提交整個頁面的數據,所以我想在每一行增加一個ID,從一開始自動編號,這樣點刪除時就可以只提交該行的值。這個編號要如何做?謝謝

[此贴子已经被作者于2006-3-9 10:50:00编辑过]

搜索更多相关主题的帖子: ASP 
2006-03-09 10:15
unix
Rank: 1
等 级:新手上路
帖 子:134
专家分:0
注 册:2005-12-28
收藏
得分:0 
我知道怎麼做了。

因為我的每個lianluo號是不一樣的,所以直接取lianluo就可以了。
2006-03-09 10:51
快速回复:請問ASP如何編號?
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.017157 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved