急:错误类型:Provider (0x80020005)类型不匹配。/Vcd_Add_Save.asp, 第 20 行。 30
<!--#includevirtual="Inc/Cls_Main.ASP"--><%ifmain.islogin=falsethenresponse.Redirect(...
<!--#include virtual="Inc/Cls_Main.ASP"-->
<%
if main.islogin=false then response.Redirect("/login.asp")
Dim ID
ID = Trim(Request.Form("id"))
if id="" then
'添加新的
sql="select * from vedio where 1=0"
set rs=server.CreateObject("adodb.recordset")
rs.open sql,main.conn,1,3
rs.addnew
else
sql="select * from vedio where id="&id
set rs=server.CreateObject("adodb.recordset")
rs.open sql,main.conn,1,3
'修改
end if
for i=1 to 9
response.write Trim(Request.Form("T_"&i)) & "<br>"
rs(i)=Trim(Request.Form("T_"&i))
next
rs("leftnum")=Trim(Request.Form("T_5"))
'response.end
rs.update
if err then
response.Write("<script>alert('出现错误:"&err.description&"');</script>")
response.end
else
response.Write("<script>alert('添加成功!');parent.location.reload();</script>")
response.end
end if
rs.close
set rs=nothing
%>
不用trim用什么啊??求教 谢谢 展开
<%
if main.islogin=false then response.Redirect("/login.asp")
Dim ID
ID = Trim(Request.Form("id"))
if id="" then
'添加新的
sql="select * from vedio where 1=0"
set rs=server.CreateObject("adodb.recordset")
rs.open sql,main.conn,1,3
rs.addnew
else
sql="select * from vedio where id="&id
set rs=server.CreateObject("adodb.recordset")
rs.open sql,main.conn,1,3
'修改
end if
for i=1 to 9
response.write Trim(Request.Form("T_"&i)) & "<br>"
rs(i)=Trim(Request.Form("T_"&i))
next
rs("leftnum")=Trim(Request.Form("T_5"))
'response.end
rs.update
if err then
response.Write("<script>alert('出现错误:"&err.description&"');</script>")
response.end
else
response.Write("<script>alert('添加成功!');parent.location.reload();</script>")
response.end
end if
rs.close
set rs=nothing
%>
不用trim用什么啊??求教 谢谢 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询