首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

<iframe>不能更新,啊!

2011-12-25 
iframe不能更新,在线等啊!!bodyMS_POSITIONING GridLayout iframeid if name if src 1.as

<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 ' ");

热点排行