标题:框架页面注册后的跳转问题
取消只看楼主
demon301686
Rank: 1
等 级:新手上路
帖 子:29
专家分:0
注 册:2007-4-3
得分:0 
    我打开一个页面里面加一段JAVA的代码它能控制其他框架的跳转  这个代码应该怎么写啊???
2007-08-23 17:43
demon301686
Rank: 1
等 级:新手上路
帖 子:29
专家分:0
注 册:2007-4-3
得分:0 
回复:(hmhz)注册成功后跳转到首页页面,首页是righ...

<%@
MM_rsUser.CursorLocation = 2
MM_rsUser.LockType = 3
MM_rsUser.Open
If Not MM_rsUser.EOF Or Not MM_rsUser.BOF Then
' username and password match - this is a valid user
Session("MM_Username") = MM_valUsername
If (MM_fldUserAuthorization <> "") Then
Session("MM_UserAuthorization") = CStr(MM_rsUser.Fields.Item(MM_fldUserAuthorization).Value)
Else
Session("MM_UserAuthorization") = ""
End If
if CStr(Request.QueryString("accessdenied")) <> "" And false Then
MM_redirectLoginSuccess = Request.QueryString("accessdenied")
End If
MM_rsUser.Close
Response.Redirect(MM_redirectLoginSuccess)
End If
MM_rsUser.Close
Response.Redirect(MM_redirectLoginFailed)
End If
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>国际商业信息交流网(暂定)</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<LINK href="css/ys1682.css"
type=text/css rel=stylesheet>
<META content="MSHTML 6.00.2900.3132" name=GENERATOR>
<style type="text/css">
<!--
.STYLE2 {font-size: 5px}
.MainFront {
font-family: Tahoma;
font-size: 10px;
color: #000000;
}
-->
</style>


</HEAD>

<BODY>
<form action="<%=MM_LoginAction%>" method="POST" name="login" id="login">
<img src="未标题-7副本.jpg" >
<DIV id=topnav>
&nbsp;&nbsp;&nbsp;<a>用户名</a>
<input name="name" type="text" class="MainFront" size="13" maxlength="20">
<a >密码</a>
<input name="psd" type="password" class="MainFront" size="13" maxlength="20">



<INPUT onclick="goUrl()" class=stbtm type=submit value=登录 name=submit >
<script>
function goUrl
{
window.parent.mainFrame.location.href="right.htm";
}
</script>


&nbsp;<a href="rep.htm" target="mainFrame"/><img src="images/3721.gif" border="0" align="top" ></a>

</DIV>
</form>
</body>

</html>

2007-08-23 17:46



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-164937-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.293098 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved