ASP框架页面跳转问题

quickboy19821982 2008-12-08 02:00:13
我在框架A内有个链接,想点一下这个链接时,框架B的页面就变成这个链接指向的页面,链接中含有RS的结果集数据,因要传参给目标页面,怎么实现?
...全文
205 13 打赏 收藏 转发到动态 举报
写回复
用AI写文章
13 条回复
切换为时间正序
请发表友善的回复…
发表回复
quickboy19821982 2008-12-08
  • 打赏
  • 举报
回复
重新做了次框架,搞定了。。。。
quickboy19821982 2008-12-08
  • 打赏
  • 举报
回复
贴出我的框架代码。。。

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>

<frameset rows="349,449*" cols="*" frameborder="yes" border="2" framespacing="2">
<frame src="ViewUserAll.asp" name="userinfo" frameborder="yes" scrolling="auto" noresize="noresize" id="userinfo" title="userinfo" />
<frameset rows="*,161" cols="663,*" framespacing="0" frameborder="yes" border="0">
<frame src="mainrec.asp" name="mainrec" frameborder="yes" scrolling="auto" noresize="noresize" id="mainrec" title="mainrec" />
<frame src="editcall.asp" name="maininput" frameborder="yes" scrolling="auto" id="maininput" title="maininput" />
<frame src="UntitledFrame-22.html" name="detailrec" frameborder="yes" scrolling="auto" id="detailrec" title="detailrec">
<frame src="UntitledFrame-23.html" name="detailinput" frameborder="yes" scrolling="auto" id="detailinput" title="detailinput">
</frameset>
</frameset>
<noframes><body>
</body>
</noframes></html>
quickboy19821982 2008-12-08
  • 打赏
  • 举报
回复
楼上的,没用,还是新窗口打开的
光明的猪 2008-12-08
  • 打赏
  • 举报
回复
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>

<frameset rows="80,*" frameborder="no" border="0" framespacing="0">
<frame src="menu.asp" name="topFrame" scrolling="No" noresize="noresize" id="topFrame" />
<frame src="main.asp" name="mainFrame" id="mainFrame" />
</frameset>
<noframes><body>
</body>
</noframes></html>

menu.asp
的连接这样写:
<a href="detailrec.asp?SN=1&ArchiveID=1" target="mainFrame" />查看明细</a>
quickboy19821982 2008-12-08
  • 打赏
  • 举报
回复
我现在想在“查看明细”上增加链接,怎么实现,现在怎么都弄不出链接来
layers2323 2008-12-08
  • 打赏
  • 举报
回复
不要意思 2楼写错了
window.detailrec 换成 window.parent.detailrec
quickboy19821982 2008-12-08
  • 打赏
  • 举报
回复
response.write " <td align=center> <script language=""javascript"">window.detailrec.location.href=""detailrec.asp?SN="&CStr(rs("SN").value)&"&ArchiveID="&CStr(rs("ArchiveID").value)&""" </script>查看明细"
在浏览器中浏览源文件后,对应的语句是
<td align=center> <script language="javascript">window.detailrec.location.href="detailrec.asp?SN=660&ArchiveID=16" </script>查看明细

哪里不对啊。。。。
quickboy19821982 2008-12-08
  • 打赏
  • 举报
回复
response.write " <td align=center><script language="&javascript&">window.detailrec.location.href=detailrec.asp?SN="&CStr(rs("SN").value)&"&ArchiveID="&CStr(rs("ArchiveID").value)&" </script>查看明细"

这样的话链接出不来,郁闷了
quickboy19821982 2008-12-08
  • 打赏
  • 举报
回复
楼上改的不对,整串都显示出来了!连JavaScript什么都显示出来了
sy_binbin 2008-12-08
  • 打赏
  • 举报
回复
response.write " <td align=center> <javascrip>window.detailrec.location.href='detailrec.asp?SN="&CStr(rs("SN").value)&"&ArchiveID="&CStr(rs("ArchiveID").value)&"' </script>查看明细"
quickboy19821982 2008-12-08
  • 打赏
  • 举报
回复
response.write "<td align=center><javascrip>window.detailrec.location.href='detailrec.asp?SN=<% CStr(rs("SN").value)%>&ArchiveID=<% CStr(rs("ArchiveID").value) %>'</script>查看明细"

我这个应该怎么改?我改不正确。。。
layers2323 2008-12-08
  • 打赏
  • 举报
回复
A内script:
window.B.location.href ="XX.asp?value=<%rs("XX").value%>"
sy_binbin 2008-12-08
  • 打赏
  • 举报
回复
<a href="**.aspx" target="B框架的名称">

28,391

社区成员

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

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