本文介绍了iframe Erorr“无法找到资源”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨
i创建了一个网页表格,在网页上显示pdf文件
Hi
i have created a web form to display a pdf file in web
string phy_path = FileUpload1.PostedFile.FileName;// to get full file path
string path = MapPathReverse(phy_path);
Session["path"] = path.ToString();
PDF_frame.Attributes.Add("src", path);
此代码代码背后
这个设计中的代码
this in code code behind
and this code in design
<iframe id="PDF_frame" runat="server" title="document view"
type="application/pdf" align="bottom" > </iframe>
但是当我运行此代码时,在框架中显示这个内容
but when i run this code , display this in the frame
Server Error in '/Ajax' 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: /Ajax/~/OLE+Automation+English.pdf
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433
我该怎么办?
what can i do ??
推荐答案
这篇关于iframe Erorr“无法找到资源”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!