⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 editlearn.asp

📁 谁有需要的话可以看看啊 !!不错还凑合源代码
💻 ASP
字号:
<!--#include file="data.asp"-->
<%

    set rs=server.createobject("adodb.recordset")
    if request("del")<>"" then
        call delsoft()
    elseif request("edit")<>"" then
        call editsoft()
    else
        call newsoft()
    end if
sub newsoft()
    sql="select * from type where (id is null)" 
    rs.open sql,conn,1,3
    rs.addnew
    rs("type")=request("type")
    rs.update
end sub
sub editsoft()
    sql="select * from type where id="&request("id")
    rs.open sql,conn,1,3
    rs("type")=request("type")
    rs.update
end sub
sub delsoft()
    sql="DELETE * from type where id="&request("id")
    rs.open sql,conn,1,3
    rs.update
end sub

    rs.close
    set rs=nothing
    conn.close
    set conn=nothing

    Response.Redirect("delearn.asp")

%>

⌨️ 快捷键说明

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