1、parent.leftFrame.aaa
2、top.document.frams("leftFrame").aaa
3、parent.frames["leftFrame"].aaa
例如:
<frameset cols="50%,50%">
<frame name=leftFrame src="about:<script>var aaa='123';</script>">
<frame name=rightFrame src="about:<input type=button value='Click here' onclick=alert(parent.leftFrame.aaa)>">
</frameset>
2、top.document.frams("leftFrame").aaa
3、parent.frames["leftFrame"].aaa
例如:
<frameset cols="50%,50%">
<frame name=leftFrame src="about:<script>var aaa='123';</script>">
<frame name=rightFrame src="about:<input type=button value='Click here' onclick=alert(parent.leftFrame.aaa)>">
</frameset>
解决方案 »
- 疑难杂症,求救!!!
- 作了一个下载页面,调用这个页面的时候,总是会有弹出的窗体,如何隐藏它
- 问个深奥的问题,可能一般很少用到
- 菜鸟思考Connection问题。请高手指教
- 在ASP.NET2.0中,在A页面中点击一个按钮把B页面中的按钮的隐藏或禁用.急
- GridView 中button的click事件怎样写?
- javascript怎样把表格间的间距缩短
- 会员注册,登陆,身份确认的问题
- 我做了个Excel报表程序,客户端启动时调用Excel,现在的问题是客户端不启动Excel,反而在服务器端启动了Excel?
- vs2012自带的MVC版本对路由大小写敏感吗
- 高手,路过进来一下,帮帮小弟,DropDownList为什么这么慢?
- 请北京的朋友看看?说的合理都给分!
可在主框架中加属性public string x
,如果传回值再刷新的话,可以在x的set事件中处理
mythus(云淡风清) ,你能具体点吗?
{
get
{
return TextBox1.Text;
}
set
{
xxxxxxxxxxxxxxx;
}}call Server.Transfer. private void Button1_Click
(object sender, System.EventArgs e)
{
Server.Transfer("Destination .aspx");
}Destination Web Formprivate void Page_Load
(object sender, System.EventArgs e)
{
//create instance of source web form
WebForm1 wf1;
//get reference to current handler instance
wf1=(WebForm1)Context.Handler;
Label1.Text=wf1.x;
}
以上代码实现从一个页面传递变量到另一个页面,我不知在目的页面中是否
可以更新原页面的属性x,即调用x的set事件,没试过,仅供讨论
错误是:
指定的转换无效。
client javascript 变量 or server side 变量?? after you change the value in the textbox like in the other post, call the FormID.submit() in 主框架