使用iframe的打电话给我的aspx页面,以html页面,该怎么办呢? [英] using iframe calling my aspx page to html page ,how to do it?

查看:148
本文介绍了使用iframe的打电话给我的aspx页面,以html页面,该怎么办呢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个错误,当我给 IFRAME code在HTML

 < IFRAME =服务器SRC =〜/ Contactus.aspx的风格=WIDTH:840px;高度:233px>< / IFRAME>

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


  

在'/'应用程序的服务器错误。资源无法找到。
  说明:HTTP 404。您正在寻找(或一个资源的
  依赖)可能已被删除,更名,或
  暂时不可用。请检查以下URL并
  确认其拼写正确。
  请求的URL:/联系我们/〜/ Contactus.aspx



解决方案

看返回的错误:请求的URL:/联系我们/〜/ Contactus.aspx

尝试修改code是这样的:

 < IFRAME =服务器SRC =Contactus.aspx的风格=WIDTH:840px;高度:233px>< / IFRAME>

I having an error that when I give the iframe code in html

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

the src path was given properly. but it was showing the error:

Server Error in '/' Application. The resource cannot be found. Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly. Requested URL: /contact us/~/Contactus.aspx

解决方案

Look at the error that was returned: Requested URL: /contact us/~/Contactus.aspx

Try modifying the code to be like this:

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

这篇关于使用iframe的打电话给我的aspx页面,以html页面,该怎么办呢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆