Page.RegisterStartupScript(script,"document.frames['IFRAME1'].location=...")

解决方案 »

  1.   

    还有一个问题就在如果在aspx中的页面onload中写入javascript脚本后,在aspx.cs中就不能载入page_onload事件了,这些问题如果解决
      

  2.   

    现在错误是提示没有 IFRAME1这个对象,这是什么原因?
    我在HTML中设置<IFRAME ID="IFRAME1" ONRUN=SERVER>还是不行
      

  3.   

    <iframe id="iframe1" runat="server"></iframe>code behind:protected HtmlGenericControl iframe1;iframe1.Attributes["src"] = "....";