到底出了什么问题?
<html>
<head>
<title>管理-添加新闻</title>
</head>
<body>
<%
if request.form("submit") = 1 then
<!--#inlucde file = "conn.inc" --> '此文件建立ADODB.Connection对象conn
set rsNews = Server.CreateObject("ADODB.RecordSet")
rsNews.open "SELECT * FROM News",conn,adOpenDynamic,adLockOptimistic
'rsNews.AddNew
'rsNews("title") = Cstr(request.form("title"))
'rsNews("source") = Cstr(request.form("source"))
'rsNews("content") = Cstr(request.form("content"))
'rsNews("type") = Cint(request.form("typeid"))
'rsNews.Updata
response.write "添加成功!"
response.Redirect "xxx.asp"
rsNews.close
set rsNews = nothing
<!--#include file = "dbClose.inc" --> '此文件关闭conn
else
%>
<form id = "addnews" runat = "server" action = "AddNews.asp" method = "POST" >
标题:<input type = text name = title><br>
来源:<input type = text name = source><br>
类型: <input type = radio name = typeid value = 1>新闻 <input type = radio name = typeid value = 2>公告 <br>
内容:<textarea name = content rows = 8 cols = 40></textarea><br>
<input type = hidden name = submit value = 1>
<input type = submit value = 提交>
<input type = reset value = 重写>
</form>
<%
end if
%>
</body>
</html>
运行后,提示错误为
ADODB.Recordset error '800a0bb9'
Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.
/AddNews.asp, line 11
为何原因?大家救救我吧!