link_dongtai.asp文件如下
<%
Dim db_dongtai
Set db_dongtai=Server.CreateObject("ADODB.Connection")
db_dongtai.Open "link_dongtai"
Dim strSql_dongtai,rs_dongtai
strSql_dongtai="Select * From dongtai Order By id DESC"
Set rs_dongtai=db_dongtai.Execute(strSql_dongtai)
%>
显示页面ASP部分如下.
<!--#Include file="../link_dongtai.asp"-->
<%
response.write"<table width='600' border='1' cellspacing='0' cellpadding='0'>"
response.write "<tr><td colspan='5' align=center>动态信息编辑</td>"
response.write "</tr>"
response.write " <tr> <td width=20><div align='center'>ID</div></td>"
response.write "<td width=460><div align='center'>标题</div></td>"
response.write "<td width=40> </td>"
response.write "<td width=40> </td>"
response.write "<td width=40> </td>"
response.Write"</tr>"
dim page_size
dim page_total
dim page_no
page_size=6
rs_dongtai.pagesize=page_size
dim i
i=page_size
do while not rs_dongtai.eof and i>0
i=i-1
response.write "<tr>"
response.write "<td width=20 align=center>"&rs_dongtai("id")&"</td>"
response.write "<td width=460 align=left>"&rs_dongtai("Headline")&"</td>"
response.write "<td width=40 align=center>"&"<a href='add_form.asp'>"&"添加"&"</a></td>"
response.write "<td width=40 align=center>"&"修改"&"</td>"
response.write "<td width=40 align=center>" & "<a href=delete.asp?id="&rs_dongtai("id")&">" &"删除"&"</a></td>"
response.write "</tr>"
rs_dongtai.Movenext
loop
response.write "</table>"
rs_dongtai.close
set rs_dongtai=nothing
db_dongtai.close
set db_dongtai=nothing
%>
太感谢了..