a.asp页面,通过admin.js定位到b.asp页面,在b.asp页面上进行更新删除等操作,最后写上
<%
Response.Write( " <script language= 'javascript '> alert( '操作成功! ');location.href= 'javascript:history.go(-1) ';setTimeout( 'location.reload() ',6000); </script> ")
%>
提示操作成功,但就是没有办法刷新a.asp页面,是怎么一回事?或者应该怎么办呢?谢谢!
------解决方案--------------------
在a.asp开头加上这么一段
<%
'强制性刷新
Response.Buffer = True
Response.ExpiresAbsolute = Now() - 1
Response.Expires = 0
Response.CacheControl = "no-cache "
Response.AddHeader "Pragma ", "No-Cache "
%>
或者在a.asp的html代码中加入
<HEAD>
<META HTTP-EQUIV= "Pragma " CONTENT= "no-cache ">
<META HTTP-EQUIV= "Cache-Control " CONTENT= "no-cache ">
<META HTTP-EQUIV= "Expires " CONTENT= "0 ">
</HEAD>
再把admin.js中的setTimeout( 'location.reload() ',6000);删掉即可