📄 delete.asp
字号:
<!--#include file='DBCn.asp'-->
<%
ClientID = request("ClientID")
BackID = request("backid")
if ClientID <> "" then
set rs=conn.execute("select * from Customer where ID="&ClientID)
if rs.bof or rs.eof then '判断要删除的用户记录是否存在
response.write "<script language=javascript>"
response.write"alert('该客户资料不存在!');"
response.write"location.href='Customer.asp';"
response.write "</script>"
response.end
end if
NewClientID = rs("ID")
rs.close
set rs=nothing
conn.execute("delete from customer where ID="& ClientID) '删除记录
%>
<html>
<head>
<title>删除客户信息</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"><META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<LINK
href="css.css" type=text/css rel=stylesheet>
</head>
<body>
<br>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align=center>
<tr>
<td width="100%" height="197" align="center">
<table border="0" cellspacing="0" cellpadding="0" height="85" bgcolor="#99ccff" width="100%">
<tr>
<td align="center">
<%if BackID<>"" then%>
<a href="Customer.asp?ClientID=<%=BackID%>" class=linkblue2>已删除该用户记录</a>
<%else%>
<a href="Customer.asp" class=linkblue2>已删除该用户记录</a>
<%end if%>
<%
response.write "<script>"
if BackID<>"" then
response.write "setTimeout("&Chr(34)&"location.replace('Customer.asp?ClientID="&BackID&"')"&Chr(34)&",2000)"
else
response.write "setTimeout("&Chr(34)&"location.replace('Customer.asp')"&Chr(34)&",2000)"
end if
response.write "</script>"
%>
</td>
</tr>
</table>
</td>
</tr>
</table>
<p>
</body>
</html>
<%
end if
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -