<!--#include file="conn.asp" -->
<%
id=cint(request.querystring("id"))
if request.querystring("id")="" then
response.redirect("index.asp")
response.end
end if
'str="delete from news where id="&id
'conn.execute(str)
'response.redirect("index.asp")
%>
<%
set rs= Server.CreateObject("adodb.recordset")
rsstr="select * from news where id="&id
rs.open rsstr,conn,1,3
rs.delete
rs.update
response.write "<script>alert('您的删除操作成功');window.location.reload('index.asp')</script>"
%>