rip lip miku mania:是ASP原代码错误谁帮我找下错误在什么地方

来源:百度文库 编辑:神马品牌网 时间:2024/05/05 20:30:01
<%@ LANGUAGE="VBSCRIPT" %>
<!--#include file="articleconn.asp"-->
<%response.buffer=false
dim sql
dim path
dim filename
dim rs
dim listname
dim articleid

articleid=request("id")'获取文章编号
path=request("path")'获取文章路径
filename=request("filename")'获取文章对应的文件名
set rs=server.createobject("adodb.recordset")
sql="update article set hits=hits+1 where newsID="&articleid'将此文章的点击次数加一
rs.open sql,conn,1,1
rs.close
conn.close
response.redirect path&"/"&filename '跳转到此文章所对应的怕asp文件上
%>
显示的是网页无法显示,很急,各位哥哥姐姐帮帮我!

rs.open sql,conn,1,1
rs.close
conn.close
response.redirect path&"/"&filename '跳转到此文章所对应的怕asp文件上
改成:(去掉set rs= ....)
conn.execute("update article set hits=hits+1 where newsID="&articleid)
set conn = nothing
response.buffer=true
response.redirect path&"/"&filename

本页如果还有错误,则可能是你的include出了问题 检查一下

在Internet选项的“高级”里打开“显示每个脚本错误的通知”,关闭“显示友好的URL”

在IIS属性的“主目录”-“配置”-“调试”里选择“向客户端发送详细的ASP错误消息”

然后运行你的页面,看看错误提示是什么,根据错误提示来解决问题。

可能的问题有:

articleconn.asp里包含<%@ LANGUAGE="VBSCRIPT"%>

你先把最后一句屏蔽,看看是否出错,然后再检查一下id是否有值~~~