框架刷新问题,应该不难,但查遍了历史贴的相关内容还是没解决,高手请帮忙!!!
以下是主框架代码:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>*******管理系统</title>
</head>
<%
busyusername=request.cookies("busyusername")
guanlidanwei=request.cookies("guanlidanwei")
realname=request.cookies("realname")
%>
<frameset rows="62,*" cols="*" framespacing="0" border="0">
<frame src="top.asp" name="top" scrolling="NO" noresize >
<frame src="index.asp" name="contents">
</frameset>
<noframes><body>
</body></noframes>
</html>
我在index.asp的窗口(即contents)先打开了login.asp,然后在login.asp页面如果输入正确的用户名和密码就可以登录进managesystem.asp页面(该页面也在contents显示),但我想在登录进managesystem.asp的同时,top.asp刷新一下,因为top.asp里是问候语,当你未登录时,它显示:您好,欢迎使用管理系统!,当你登录进managesystem.asp后,它立即刷新并显示为:张三丰您好,今天是*年*月*日,这是您第5次登录,现在就是这个刷新我实现不了,请教各位!!!
以前的贴子多是用:
parent.top.location.reload();
parent.frames['top'].location.reload();
等,都试过了,一点反应都没有!!!
下面是login.asp部分代码:
<%if request("submit")="登录" and 用户名密码都正确 then
response.redirect "managesystem.asp"
%>
<script>
parent.top.location.reload();
</script>
<%else%>
你的输入出错了!
<%end if%>
能搞定必给高分!