海,
<iframe id="divIFrame" scrolling="no" runat ="server" src="Login.aspx" frameborder="0" style="width: 575px; height:323px; padding:0px;z-index:0px;" > </iframe>
在代码隐藏中,我使用一行代码将'src'属性添加到iframe中。
divIFrame.Attributes("src") = "..\Pages\Company.aspx"
它在IE和crome中工作,但在Mozila firefox中不工作
Server Error in '/' Application. HTTP Error 400 - Bad Request. Version Information: ASP.NET Development Server 9.0.0.0
请帮忙。
您需要在URL中使用正斜杠/而不是反斜杠\。
divIFrame.Attributes("src") = "../Pages/Company.aspx"