怎么用ASP跳到前一个页面

qffj 2006-02-22 05:46:54
为了进行用户认证
在每个页面开头跳转到checklogin.asp页面进行认证。认证完毕后还要跳回原页面。请问怎么写啊?
谢谢!
...全文
119 12 打赏 收藏 转发到动态 举报
写回复
用AI写文章
12 条回复
切换为时间正序
请发表友善的回复…
发表回复
hy98521 2006-02-23
  • 打赏
  • 举报
回复
mark
cnsolomon 2006-02-23
  • 打赏
  • 举报
回复
其它的,非ASP,但是可以输出
<%
Response..write "<meta http-equiv='refresh' content='10;url=http://www.google.com'>"
%>

<%
Response..write "<script language='javascript'><!--location.replace('page.htm')//--></script>"
%>
qffj 2006-02-23
  • 打赏
  • 举报
回复
谢谢大家!
DarkW 2006-02-23
  • 打赏
  • 举报
回复
你看看<%=request.serverVariables("Http_REFERER")%>这个也行
DarkW 2006-02-23
  • 打赏
  • 举报
回复
插入这个
<%
response.write ("<script>window.alert('我跳');history.back();</script>")
%>
dingjin_dj 2006-02-23
  • 打赏
  • 举报
回复
如果你这个页面并非一定的页面的话,可以用
Response.Redirect request.serverVariables("Http_REFERER")

如果是固定的一页就直接用
Response.Redirect XX.asp
任亚军 2006-02-22
  • 打赏
  • 举报
回复
Response.Redirect request.serverVariables("Http_REFERER")
danjingwu 2006-02-22
  • 打赏
  • 举报
回复
用Response.Redirect XX.asp
stoneloveice 2006-02-22
  • 打赏
  • 举报
回复
或者
<script>
document.location.href="edit_3.asp";
</script>
z5sd 2006-02-22
  • 打赏
  • 举报
回复
response.redirect
stoneloveice 2006-02-22
  • 打赏
  • 举报
回复
Response.redirect
wangyingdong 2006-02-22
  • 打赏
  • 举报
回复
答<a href="<%=request.serverVariables("Http_REFERER")%>">preivous page</a>

或用图片如:<img src="arrowback.gif" alt="<%=request.serverVariables("HTTP_REFERER")%>">


http://www.dwww.cn/new/20062212016231119.html

28,406

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧