Asp.net 我对IFrame有问题
海, 我有一个iFrame用于在我的页面中显示动态页面Asp.net 我对IFrame有问题,asp.net,Asp.net,海, 我有一个iFrame用于在我的页面中显示动态页面 <iframe id="divIFrame" scrolling="no" runat ="server" src="Login.aspx" frameborder="0" style="width: 575px; height:323px; padding:0px;z-index:0px;" > </iframe> 它在IE和crome中工作,但在Mozila firefox中不工作。它
<iframe id="divIFrame" scrolling="no" runat ="server" src="Login.aspx" frameborder="0"
style="width: 575px; height:323px; padding:0px;z-index:0px;" >
</iframe>
它在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"
Internet Explorer正在悄悄地为您转换斜杠,掩盖了一个问题。Firefox不正确。我认为大多数人(AFAIK)会调用\反斜杠和/正斜杠+1请发表评论though@Dolbz-你可能是对的。我总是把这两者搞混:)[[编辑]]
divIFrame.Attributes("src") = "../Pages/Company.aspx"