if Trim(Request.form("id"))="" then
FoundErr=True
Message=Message &"<li>请您选择要删除的信息!</li>"
else
call Del(cint(Trim(Request.form("id"))))
end if
if FoundErr=True then
call ErrMsg(Message)
end if
sub del(id)
sql = "select * from product where id ="&id
rs=server.CreateObject("ADODB.Recordset")
rs.open sql,conn,1,3
if not rs.eof then
rs.delete
rs.update
response.Write("<script>alert(""删除成功!"")window.location.href='index.asp'</script>")
set rs=nothing
response.end
else
FoundErr=True
Message="你要删除的ID不存在!"
end if
End Sub
end if
%>
用前端正派神器: sublimeText3
方法一:
适用于规则长度、格式的内容
左手按住 Shift ,右手按住右键,从左上角向下进行选取,然后删除(Delete)。
方法二:
使用正则替换(Ctrl + H)
<button name="delate" value="delate">delate</button>value和name值有需要自己改,没需要删除
echo '<td width=100px><button name="delate" value="delate">delate</button></td>'
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)