添加大类
<%
dim Action,ClassName,rs
Action=trim(Request("Action"))
ClassName=trim(request("ClassName"))
if Action="Add" then
if ClassName="" then
response.Write ""
response.End
end if
Set rs=Server.CreateObject("Adodb.RecordSet")
rs.open "Select * From Class Where ClassName='" & ClassName & "'",conn,1,3
if not (rs.bof and rs.EOF) then
response.Write ""
response.End
else
rs.addnew
rs("ClassName")=ClassName
rs.update
rs.Close
set rs=Nothing
conn.close
set conn=nothing
Response.Redirect "ClassManage.asp"
end if
else
%>