《实例精粹ASP》中部分源代码

源代码在线查看: manumodifysave.asp

软件大小: 2514 K
上传用户: renyumeng
关键词: ASP 源代码
下载地址: 免注册下载 普通下载 VIP

相关代码

				
									   dim cmdObj, rsObj
					   dim szName, nID
					   szName  =  RealString(Request.Form("name"))
					   nID  =  RealString(Request.Form("ID"))
					   '注:此处省略对szName和nID是否为空的判断,实际中需加上!
				       Set cmdObj  =  Server.CreateObject("ADODB.Command")
				       Set rsObj  =  Server.CreateObject("ADODB.RecordSet")
				       cmdObj.CommandText  =  "SELECT * FROM ProductType WHERE id = " & nID
				       cmdObj.CommandType  =  adCmdText
				       Set cmdObj.ActiveConnection  =  conn
				       rsObj.Open cmdObj, , adOpenKeyset, adLockOptimistic
				       rsObj("name")  =  szName
				       rsObj.Update
				
				       rsObj.Close
				       set rsObj = nothing
				       
				       CloseConn()
				%>
				
									alert("修改成功!");
					this.document.location = "manuList.asp?id=";
				-->
				
							

相关资源