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