你在19楼说到:
整个运行起来能把数据删除的,但光运行DELETE.ASP这个文件时就出现那个错误了
<%@ language="vbscript" %>
<!--#include file="adovbs.inc"-->
<%
CurrBookID=request("SeggID") '你只是单纯的接收传过来的值,你单独只运行这个页面当然出错啦!!!值都没有,怎么会不错?
If request("SeggID")="" Then
Response.Write("参数错误")
Response.End
Else
CurrBookID=Request("SeggID")
DbPath = SERVER.MapPath("guestbook.mdb")
Set conn = Server.CreateObject("ADODB.Connection")
conn.open "driver={Microsoft Access Driver (*.mdb)};dbq=" & DbPath
sql="Delete * from lyb Where SeggID="&CurrBookID&""
conn.Execute(sql)
response.redirect "manger.asp"
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" >
</head>
<body link="#005f02" vlink="#00b06f" >
</body>
</html>