📄 del.asp
字号:
<!--#include file="Safety.asp"-->
<%
id = Request.Querystring("id")
sourceFile = Server.MapPath("Word.xml")
if id<>"" then
Set source = Server.CreateObject("Microsoft.XMLDOM")
'Set source = Server.CreateObject("Msxml2.DOMDocument")
source.async = false
source.load(sourceFile)
Set currNode = source.selectSingleNode("xml/guestbook/item[id='" & id & "']")
if Not IsNull(currNode) then
currNode.parentNode.removeChild(currNode)
End If
source.save(sourceFile)
Response.Write "<script>window.alert('删除成功!');window.location='admin.asp';</script>"
Response.End
end if
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -