急:两个iframe互操作问题。 两个iframe并排在一个html里,iframe A里是一个.aspx页面,里面有一个linkbutton。我想点击后,iframe B加载进一个指定的.aspx网页。怎么做啊?我第一次接触,代码以及代码放在哪里,详细点,多谢了。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 用javascript脚本,脚本提交写好,linkbutton.Attributes["onclick"]="javascript:functionname()" <script language="javascript"> function linkbutton_click() { iframe2.location="other.aspx"; }在页面中linkbutto属性中加入:OnClick="linkbutton_click();" 同意楼上的。给A中的LinkButton添加一个Onclick()事件.parent.document.all("iframeB").src = "g.aspx" Page_load(){ linkbutton.Attributes["onclick"] = "parent.frame2.location.href = 'ddd.aspx';";} 大哥哥们,我对javascript一点都不知。能不能告诉我代码都放哪呀? to kkeemmgg(kkeemmgg) 您的script模块放在哪呀? to cnhgj(戲子)(我想养只沙皮狗) 你的代码放哪呀? 对不起阿 借用代码了Page_load(){ linkbutton.Attributes["onclick"] = "parent.frame2.location.href = 'ddd.aspx';";}放在你的后端代码中,即private void Page_Load(object sender, System.EventArgs e){}这个函数中 说错了就这样写吧:private void Page_Load(object sender, System.EventArgs e){{ linkbutton.Attributes["onclick"] = "javascript:parent.frame2.location.href = 'ddd.aspx';";} to:vivi8233(吐司)出错,说33行缺少“;”。可33行是空呀。求救。 根本不用这么麻烦。你在LINKBUTTON的CLICK事件里面把下面的代码copy进去!~YourIframeID.Attributes["src"]="yourpage.aspx";就万事大吉了。结贴吧。 asp.net中<authentication>与<authorization>来控制用户对网页的访问 当单引号跟双引号很多时 js在线客服滚动 请问如何在多个服务器中共享Session 提交服务器后样式变化 大家帮忙给个意见,我是否该换工作了 关于在asp.net上邮件发送时遇到的问题 提一个急急的问题! 有一个图片,我想切割指定的一部分,保存起来,怎么办? 哪位提供一个在线升级的功能的例子 返回值不能提交!?? 可不可以将字符串数组一句话增加到数据库各记录中!
function linkbutton_click()
{
iframe2.location="other.aspx";
}在页面中linkbutto属性中加入:
OnClick="linkbutton_click();"
parent.document.all("iframeB").src = "g.aspx"
{
linkbutton.Attributes["onclick"] = "parent.frame2.location.href = 'ddd.aspx';";
}
您的script模块放在哪呀?
你的代码放哪呀?
Page_load()
{
linkbutton.Attributes["onclick"] = "parent.frame2.location.href = 'ddd.aspx';";
}
放在你的后端代码中,即
private void Page_Load(object sender, System.EventArgs e){}
这个函数中
就这样写吧:
private void Page_Load(object sender, System.EventArgs e){
{
linkbutton.Attributes["onclick"] = "javascript:parent.frame2.location.href = 'ddd.aspx';";
}
出错,说33行缺少“;”。可33行是空呀。求救。