?? 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 + -