将控制权从一帧转移到另一帧 [英] Transfer control from one frame to another frame

查看:109
本文介绍了将控制权从一帧转移到另一帧的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好团队,

如何将控件从一帧转移到另一帧.每当用户单击按钮时,用户都应该能够在另一帧中看到搜索结果,但是我无法将控件转移到另一帧,我什至尝试使用)1) server.transfer(文件名)

Hello Team,

How to transfer control from one frame to another frame .Whenever user click on the button user should be able to see the search result in the other frame but i am not able to transfer the control to the other frame I even try with )1)server.transfer(Filename )

<form method="post" target="Body" action="SearchResult.aspx"></form>


下面是代码:


Below is the code :

<frameset rows="6%,*,6%" frameborder="yes" border="1" framespacing="0"  >
   <frame src="" name="Head" scrolling="NO" noresize>
<frameset cols="24%,*" frameborder="yes" border="1" framespacing="0" >
   <frame src="LeftFrame.aspx" name="Menu" scrolling="NO" noresize>
   <frame src="SearchResult.aspx" name="Body" scrolling="auto" noresize>
</frameset>
   <frame src="" name="Foot" scrolling="NO" noresize>

推荐答案

感谢ryanb31的回复.
Thank you ryanb31 for the response .. I used the below Code and It worked
Response.Write("<script>window.open('SearchResult.aspx','Body');</script>");


使用jQuery设置iframe的src.

Using jQuery set the src of the iframe.


(" ).src(' http://url?query =' + searchterms ' );
("#idOfIframe").src('http://url?query=' + searchterms');


这篇关于将控制权从一帧转移到另一帧的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆