0

我有一个错误,当我iframe在 html 中给出代码时

<iframe  runat="server" src="~/Contactus.aspx" style="width: 840px; height: 233px"></iframe>

src路径已正确给出。但它显示了错误:

“/”应用程序中的服务器错误。无法找到该资源。说明:HTTP 404。您要查找的资源(或其依赖项之一)可能已被删除、名称已更改或暂时不可用。请查看以下 URL 并确保其拼写正确。请求的 URL:/联系我们/~/Contactus.aspx

4

1 回答 1

1

查看返回的错误:Requested URL: /contact us/~/Contactus.aspx

尝试修改代码如下:

<iframe  runat="server" src="Contactus.aspx" style="width: 840px; height: 233px"></iframe>
于 2012-08-17T07:23:34.843 回答