<table>
<tr>
<td> 标题 </td> <td> <input type= "text " name= "title "/> </td>
</tr>
<tr>
<td> 内容 </td> <td>
<textarea name= "content " cols= "50 " rows= "8 "> </textarea>
</td>
</tr>
<tr>
<td> 发表人 </td> <td> <input type= "text " name= "name " value= " "> </td>
</tr>
<tr>
<td> <input type= "submit "name= "ok " value= "提交 "/> </td> <td> <input type= "submit " name= "clear " value= "重填 "/> </td>
</tr>
</table>
<% Dim Conn
Set Conn = Server.CreateObject( "ADODB.Connection ")
Conn.open "Provider = Microsoft.Jet.OLEDB.4.0;Data Source= "& Server.MapPath( "database/db1.mdb ")
Set rs = Server.CreateObject( "ADODB.recordset ")
sql = "select* from chat where id=0 "
rs.open sql,Conn,3,3
rs.addnew
rs( "title ")=request( "title ")
rs( "content ")=request( "content ")
rs( "name ")=request( "name ")
rs.update
rs.close
set rs=nothing
response.redirect "page.asp "
%>
出现一个错误提示:当前记录集不支持更新。这可能是提供程序的限制,也可能是选定锁定类型的限制。
------解决方案--------------------
rs.open sql,Conn,3,3
3,3
调整一下
------解决方案--------------------
设置一下权限吧
------解决方案--------------------
蹭分
XP下,IIS网站目录文件夹-》工具-》文件夹选项-》查看-》去掉简单共享
共享设置everyone权限
------解决方案--------------------
http://bbs.leadbbs.com/a/a.asp?BoardID=230&ID=788720