ASP 实现表格里插入最新内容
2010-01-21 10:11
288 查看
<%
set rr_Product=server.createobject("adodb.recordset")
sqltt="select top 3 * from product order by UpdateTime desc"
rr_Product.open sqltt,conn,1,1
if rr_Product.bof and rr_Product.eof then
response.write "无记录"
else
i=0
dim a(2)
do while not rs.eof
a(i)=rr_Product("DefaultPicUrl")
i=i+1
rr_Product.movenext
if rr_Product.eof then exit do
loop
end if
%>
<table width="345" height="109" border="1">
<tr>
<td><img src=<%=a(0)%> /></td>
</tr>
<tr>
<td><img src=<%=a(1)%> /></td>
</tr>
<tr>
<td><img src=<%=a(2)%> /></td>
</tr>
</table>
<%rs_Product.close %>
set rr_Product=server.createobject("adodb.recordset")
sqltt="select top 3 * from product order by UpdateTime desc"
rr_Product.open sqltt,conn,1,1
if rr_Product.bof and rr_Product.eof then
response.write "无记录"
else
i=0
dim a(2)
do while not rs.eof
a(i)=rr_Product("DefaultPicUrl")
i=i+1
rr_Product.movenext
if rr_Product.eof then exit do
loop
end if
%>
<table width="345" height="109" border="1">
<tr>
<td><img src=<%=a(0)%> /></td>
</tr>
<tr>
<td><img src=<%=a(1)%> /></td>
</tr>
<tr>
<td><img src=<%=a(2)%> /></td>
</tr>
</table>
<%rs_Product.close %>
相关文章推荐
- 实现对表格内容的简单筛选
- 《新闻发布系统》利用第三方控件FreeTextBox实现在ASP.NET下插入和显示新闻
- 利用ASP.NET AJAX实现表格更新程序
- ASP.NET抓取网页内容的实现方法
- jQuery实例之实现对表格内容的操作
- 在asp.net中实现对webform上的一个textbox的内容的另存方法.
- 4行CSS实现【表格内容超过一行的部分,用省略号代替】【支持IE6】
- 在 ASP.NET 上实现锁定表头、支持滚动的表格的做法
- C#实现的ASP.NET全能型验证码控件(09.11.22) (10.01.27最新修改)
- jsp里面实现asp.net的Global文件内容。
- jquery实现在光标位置插入内容的方法
- asp实现批量插入表单中的数据到数据库的方法
- tp中,用户实现将Excel表格内容添加到数据库中
- 分享一个表格插入和删除编辑功能用jQuery实现
- C# ListBox实现显示插入最新的数据的方法
- 用js实现的一个根据内容自动生成表格的函数
- Vue中使用Froala Editor时,外部方法调用html.insert()插入内容到光标最后停留位置功能实现
- Vue中使用Froala Editor时,外部方法调用html.insert()插入内容到光标最后停留位置功能实现
- 表头固定内容可滚动表格的3种实现方法