在asp.net中,iframe中通过src属性载入一个页面,为什么这个载入的页面显示不了

来源:百度知道 编辑:UC知道 时间:2024/05/27 16:39:55
代码是这样的:
<h3>»上传图片:<font color="#333333">(限最多一张,100KB以内图档) </font></h3>
<form id="form1" runat="server">
<div>
<iframe id="loadfile_area" frameborder="1" scrolling ="auto"
src="uploadFile.aspx" visible ="true"
width ="255" height="100%" style="width: 262px; height: 100px" title="uploadFile_area" ></iframe>
 </div>
</form>
出现这样的错误:
“/”应用程序中的服务器错误。
--------------------------------------------------------------------------------

分析器错误
说明: 在分析向此请求提供服务所需资源时出错。请检查下列特定分析错误详细信息并适当地修改源文件。

分析器错误信息: 未能加载类型“_uploadFile”。

源错误:

行 1: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="uploadFile.aspx.cs" Inherits="_uploadFile"

Inherits="_uploadFile" 这里应该是命名空间名加页面名吧。如Inherits="namespace.uploadFile"
即使不加空间名你的页面名也错了跟CodeFile="uploadFile.aspx.cs" 就不一致

form表单应该放在IFRAME的src文件里面吧!~