追求卓越,资源共享

大小类产品调用删除代码

-------------显示小类名称-----------------------
<%=rsSmallClass("SmallClassName")%>
---------------删除小类-----------------------
ClassDelSmall.asp?SmallClassID=<%=rsSmallClass("SmallClassID")%>
--------------ClassDelSmall.asp内容------------
<%@language=vbscript codepage=936 %>
<!--#include file="Conn.asp"-->
<!--#include file="Admin.asp"-->
<%
dim SmallClassID,sql
SmallClassID=trim(Request("SmallClassID"))
sql = "select CenterClassName,SmallClassName from SmallClass where SmallClassID=" & Cint(SmallClassID)
set rs = conn.execute(sql)
if not rs.eof then
    bigClassName = rs(0)
   else
    response.End()
   end if
 conn.execute "delete from  price  where CenterClassName='" & rs(0) & "' and SmallClassName='" & rs(1) & "'"
 conn.execute "delete from  product  where CenterClassName='" & rs(0) & "' and SmallClassName='" & rs(1) & "'"
   if SmallClassID<>"" then
 sql="delete from SmallClass where SmallClassID="&Cint(SmallClassID)&""
 conn.Execute sql
end if
call CloseConn()     
response.redirect "ClassManage.asp"
%>
-----------调用大类列表---------------------
<%=rsBigClass("BigClassName")%> 
-------------删除大类包括小类-----------------   
ClassDelBig.asp?BigClassID=<%=rsBigClass("BigClassID")%>
-----------------------------------
ClassDelBig.asp内容
---------------------------------
<%@language=vbscript codepage=936 %>
<!--#include file="Conn.asp"-->
<!--#include file="Admin.asp"-->
<%
dim BigClassName,sql
BigClassName=trim(Request("BigClassName"))
if BigClassName<>"" then
 sql="delete from BigClass where BigClassName='" & BigClassName & "'"
 conn.Execute sql
 sql="delete from CenterClass where BigClassName='" & BigClassName & "'"
 conn.Execute sql
 sql="delete from SmallClass where BigClassName='" & BigClassName & "'"
 conn.Execute sql
end if
call CloseConn()     
response.redirect "ClassManage.asp"
%>
-------------------------------------
{keywords:大小类产品调用删除代码}是本站 (追求卓越,资源共享) 中一篇关于keywords:大小类产品调用删除代码最经典的文章,欢迎您阅读和评论,您可以从百度搜索大小类产品调用删除代码其它信息,也可以从google中查询更多大小类产品调用删除代码的相关信息。
标签:computuer
分类:技术交流| 发布:laibu| 查看: | 发表时间:2007-8-24
原创文章如转载,请注明:转载自黑暗天堂 http://www.918x.cn/
本文链接:http://www.918x.cn/post/255.html

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

1 #5
5 643
http://5 2010-3-3 0:55:18 【REPLY】