高分!!--一个很简单的问题:页面刷新。

Rikee 2004-07-16 12:31:35
我使用了框架页面,左边是功能菜单,右边是登录页面和要显示的内容Fram1。

登录后,由于是在框架页面内发送请求的,结果使用Response.Redirect"xxx.asp"
后,xxx.asp在框架内显示了,本来是期望在整个浏览器页面内显示xxx.asp的。

也就是左边还是功能菜单(登录前的),右边是xxxx.asp页面!

我期望的效果是登录后直接转向:xxx.asp。

另外,能否在服务器端脚本里直接调用浏览器的刷新功能?比如在主页登录后刷新主页?
...全文
152 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
Rikee 2004-07-16
  • 打赏
  • 举报
回复
最佳: stefli((桂电)) ( ) 信誉:111

netying(鹰击长空) 和 AAsx(arbiter) 好像不行,不过也许我笨。呵呵!

已经加分,请笑纳!
fashchina 2004-07-16
  • 打赏
  • 举报
回复
<%
if session("username")="" then%>
<script>
alert("时间到");
top.location.href='login.asp';
</script>
<%end if%>
海大富运动 2004-07-16
  • 打赏
  • 举报
回复
response.write "<meta http-equiv-refresh content=""2;url=xxx.asp"";>"
Rikee 2004-07-16
  • 打赏
  • 举报
回复
呵呵,多谢!回复的好快!我马上给分!!
hemeng 2004-07-16
  • 打赏
  • 举报
回复
同意!
Response.Redirect"xxx.asp target='_top'"
伟大de虫子 2004-07-16
  • 打赏
  • 举报
回复
<%Response.write("<script>window.open('xxx.asp','_top','')</script>")
netying 2004-07-16
  • 打赏
  • 举报
回复
Response.Redirect"xxx.asp target='_top'"
stefli 2004-07-16
  • 打赏
  • 举报
回复
不使用Redirect

<%
Response.Write("<Script>top.location.href='xxx.asp';</Script>")
%>
Rikee 2004-07-16
  • 打赏
  • 举报
回复
多谢各位的不吝赐教!!

28,390

社区成员

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

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