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

📄 modifycomponentdo.asp

📁 能实现用户注册
💻 ASP
字号:
<!-- #INCLUDE FILE="odbc_connection.inc" -->
<%
strProductID=request.querystring("PID")
ComponentID=request.querystring("CID")
intKey=request.querystring("KEY")
intSessionID=session.sessionID

if request.querystring("DEL")="y" then
	ChangeTo="delete"
else
	ChangeTo=request.form("cboProduct")
end if

if ChangeTo="delete" then
	sSQL="DELETE * FROM tbl_Inventory_System_Components_Session "
	sSQL=sSQL & "WHERE intKey=" & intKey & " AND strProductIDComponent='" & ComponentID & "'"
	Set RS = Server.CreateObject("ADODB.Recordset")
	RS.Open sSQL, conn, 3, 2 'write
else
	if request.querystring("ADD")="y" then
		sSQL="INSERT INTO tbl_Inventory_System_Components_Session ("
		sSQL=sSQL & "intSessionID, strProductIDSystem, strProductIDComponent) VALUES "
		sSQL=sSQL & "(" & intSessionID & ", '" & strProductID & "', '" & ChangeTo & "')"
	else
		sSQL="UPDATE tbl_Inventory_System_Components_Session "
		sSQL=sSQL & "SET strProductIDComponent='" & ChangeTo & "'"
		sSQL=sSQL & " WHERE (intKey=" & intKey
		sSQL=sSQL & " AND strProductIDComponent='" & ComponentID & "'"
		sSQL=sSQL & " AND intSessionID=" & intSessionID & ")"
	end if
	Set RS = Server.CreateObject("ADODB.Recordset")
	RS.Open sSQL, conn, 3, 2 'write
end if
SET RS=nothing
response.redirect "ProductDescriptionSys.asp?CategoryID=" & CategoryID & "&strProductID=" & strProductID
%>

⌨️ 快捷键说明

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