使用说明: 请将ASPBook文件夹直接复制到硬盘上

源代码在线查看: saveanclass.asp

软件大小: 1126 K
上传用户: srbrabbit
关键词: ASPBook 使用说明 硬盘
下载地址: 免注册下载 普通下载 VIP

相关代码

				
								anclassid=request.QueryString("id")
				action=request.querystring("action")
				select case action
				'//添加新数据
				case "add" 
				set rs=server.CreateObject("adodb.recordset")
				rs.open "select * from shop_anclass",conn,1,3
				rs.AddNew
				rs("anclass")=trim(request("anclass2"))
				rs("anclassid")=trim(request("anclassid2"))
				rs.Update
				rs.Close
				set rs=nothing
				response.Redirect "anclass.asp"
				'//修改数据
				case "edit"
				set rs=server.CreateObject("adodb.recordset")
				rs.open "select * from shop_anclass where anclassid="&anclassid,conn,1,3
				rs("anclass")=trim(request("anclass"))
				rs("anclassid")=trim(request("anclassid"))
				rs.Update
				rs.Close
				set rs=nothing
				response.Redirect "anclass.asp"
				'//删除数据
				case "del"
				conn.execute ("delete from shop_anclass where anclassid="&anclassid)
				conn.execute ("delete from shop_books where anclassid="&anclassid)
				response.Redirect "anclass.asp"
				end select
				%>			

相关资源