二人转魏三的搭档:ASP程序的问题:类型不匹配: 'fy'

来源:百度文库 编辑:高校问答 时间:2024/04/28 16:16:18
错误类型:
Microsoft VBScript 运行时错误 (0x800A000D)
类型不匹配: 'fy'
/zk/manage/delx.asp, 第 16 行

<!-- #include file="../Common/Conn2.asp" -->
<!-- #include file="../Common/validate2.asp" -->
<!-- #include file="../Common/Function.asp" -->
<%
id=request("id")
index1=request("index")
if index1=0 then
sql="update news set index='1' where id= ("&id&")"
elseif index1=1 then
sql="update news set index='0' where id= ("&id&")"
end if

'response.Write sql
'response.End
conn.execute sql
fy"修改成功,请刷新","javascript:history.go(-1)"
%>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">

如何改才是对了,谢谢

fy"修改成功,请刷新","javascript:history.go(-1)"
这句可以改为
response.write"<script>window.alert('修改成功,请刷新');javascript:history.go(-1);</script>"

fy 是一个自定义的函数,这需要看一下这个函数它本身是如何定义,还有需要将这个函数包含到当前页面才可以使用。