关于ASP的输出问题
<%set conn=server.CreateObject("adodb.connection")
conn.open"driver={microsoft access driver (*.mdb)};dbq="&server.MapPath("database/info.mdb")
set rs=server.CreateObject("adodb.recordset")
sql="select * from user order by id desc"
rs.open sql,conn,1,1
do while not rs.eof
response.Write"<tr>"
response.Write"<td><input name='' type='checkbox' value='' /></td>"
response.Write"<td>"&rs("name").value&"</td>"
response.Write"<td>"&rs("guoji").value&"</td>"
response.Write"<td>"&rs("shengfen").value&"</td>"
response.Write"<td>"&rs("dizhi").value&"</td>"
response.Write"</tr>"
loop
rs.close
set rs=nothing
conn.close
set conn=nothing
%>
conn.open"driver={microsoft access driver (*.mdb)};dbq="&server.MapPath("database/info.mdb")
set rs=server.CreateObject("adodb.recordset")
sql="select * from user order by id desc"
rs.open sql,conn,1,1
do while not rs.eof
response.Write"<tr>"
response.Write"<td><input name='' type='checkbox' value='' /></td>"
response.Write"<td>"&rs("name").value&"</td>"
response.Write"<td>"&rs("guoji").value&"</td>"
response.Write"<td>"&rs("shengfen").value&"</td>"
response.Write"<td>"&rs("dizhi").value&"</td>"
response.Write"</tr>"
loop
rs.close
set rs=nothing
conn.close
set conn=nothing
%>
这段程序运行后产生这样的错误,第一次运行的时候,什么都没有显示,再次运行就产生后面的错误,这是什么原因啊!
错误类型:
Response 对象, ASP 0104 (0x80070057)
不允许操作
/nancy/work/main.asp
浏览器类型:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
网页:
GET /nancy/work/main.asp
时间:
2007年9月14日, 22:55:45