专注收集记录技术开发学习笔记、技术难点、解决方案
网站信息搜索 >> 请输入关键词:
您当前的位置: 首页 > ASP.NET

<iframe>不能更新,啊!

发布时间:2011-06-22 16:50:58 文章来源:www.iduyao.cn 采编人员:星星草
<iframe>不能更新,在线等啊!!
<body   MS_POSITIONING= "GridLayout ">
<iframe   id= "if "   name= "if "   src= "1.aspx "> </iframe>
<form   id= "Form1 "   method= "post "   runat= "server ">
<asp:Button   id= "Button1 "   style= "Z-INDEX:   101;   LEFT:   16px;   POSITION:   absolute;   TOP:   184px "   runat= "server "
Text= "Button "> </asp:Button>
</form>
</body>
------------------------------------
Button1代码:
private   void   Button1_Click(object   sender,   System.EventArgs   e)
{
this.Response.Write   ( " <script> window.parent.frames[ 'if '].location= '2.aspx '; </script> ");  
}

点击Button1   为什么不能更新 <iframe>

------解决方案--------------------
Page.RegisterStartupScript( "dd ", "window.parent.frames[ "if "].location= '2.aspx ' ");
友情提示:
信息收集于互联网,如果您发现错误或造成侵权,请及时通知本站更正或删除,具体联系方式见页面底部联系我们,谢谢。

其他相似内容:

热门推荐: