ASP读取-删除-翻页 在线等!

来源:百度知道 编辑:UC知道 时间:2024/05/19 21:47:37
页面做出来了,简单的读取数据库中的内容.如何删除,翻页!希望高手给出代码!简洁一些,最好能注明代码的意思!谢谢!在线等,很想学习!可提供ASP+PHP空间.以下是我自己写的页面代码:

<!--#include file="conn.asp" -->
<%
exec="select * from form"
set rs=server.createobject("adodb.recordset")
rs.open exec,conn,1,1
%>
<%do while not rs.eof%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>我的通讯录</title>
<style type="text/css">
body {
background-color: #C4D8ED;
margin-left: 10px;
margin-top: 10px;
margin-right: 10px;
margin-bottom: 10px;
}
.td_title {
line-height: 20px;
font-weight: bold;
color: #135294;
background-color: #FFFFFF;
text-align: left;

在回答你问题之前,给你提个建议:先学好html基本东东再学ASP,因为ASP是嵌入到html中的服务器脚本(语言).你的代码太乱了,根本运行不了,N年之前我已经接触ASP.下面是我帮你清理的代码,你看和你的相比是不是一目了然?我也是过来人,理解支持初学者,万事开头难嘛!! 相信你会很快进步!
---------------------------------------------------------------------
1\帮你写个css文件(mycss.css),代码就是你页头的<style type="text/css"> 和</style>之间的内容:
.body {
background-color: #C4D8ED;
margin-left: 10px;
margin-top: 10px;
margin-right: 10px;
margin-bottom: 10px;
}
.td_title {
line-height: 20px;
font-weight: bold;
color: #135294;
background-color: #FFFFFF;
text-align: left;
height: 25px;
}
.td_content {
line-height: 18px;
color: #135294;
background-color: #EEF7FD;
height: 24px;
text-align: left;
}
使用时在<title></title>下面连接:<link href="mycss.css" rel="stylesheet" type="text/css">
----------------------------------------------