更新
代码如下:显示得了,但是更新不了??
<!--#include file="conn.asp"-->
<%
set rs=server.createobject("adodb.recordset")
sql="select * from Class_1"
rs.open sql,conn,1,3
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>类别修改</title>
</head>
<body>
<% do While Not rs.Eof %>
<form name="form1" method="post" action="admin-class.asp?update">
<table width="76%" height="25" border="1">
<tr>
<td> <input name="name1" type="text" value="<%=rs("Class_1_Name")%>">
</td>
<td><input type="submit" name="Submit" value="修改"></td>
<td>删除</td>
</tr>
</table>
</form>
<% rs.movenext
loop
%>
</body>
</html>
<%
if request.querystring ="update" then
rs("Class_1_Name")=request("name1")
rs.update
response.write "修改成功"
end if
rs.close
set rs=nothing
conn.close
%>