delete.asp

来自「学生学籍信息 这是一个针对学生学籍信息的管理软件」· ASP 代码 · 共 30 行

ASP
30
字号
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="Connections/assistconn.asp" -->
<%

if(request.querystring("ID") <> "") then delcommand__Coldel = request.querystring("ID")

%>
<%

set delcommand = Server.CreateObject("ADODB.Command")
delcommand.ActiveConnection = MM_assistconn_STRING
delcommand.CommandText = "DELETE FROM assistab  WHERE ID = " + Replace(delcommand__Coldel, "'", "''") + " "
delcommand.CommandType = 1
delcommand.CommandTimeout = 0
delcommand.Prepared = true
delcommand.Execute()

%>

<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta http-equiv="refresh" content="0;URL=seashowm.asp">
</head>

<body>
</body>
</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?