asp.net中的iframe控件 [英] iframe control in asp.net
本文介绍了asp.net中的iframe控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
< iframe id = ContentPlaceHolder1_pdfiframe height = 600px width = 850px src = E:\\uploads\\4876baaf-c10a-494c-8e3c-6efd89fe9c85ADPro咨询办公室Directions.pdf > < / iframe >
但它没有显示图像plz帮帮我
解决方案
如果有空格b / w在文件夹名称或PDF中它不会采取。
如下重命名PDF。
DPro_Consulting_Office_Directions.PDF
所以它可以打开它。
或者在页面加载中你可以写如下。
string path = Server.MapPath(@ E:\\uploads\\4876baaf-c10a-494c-8e3c-6efd89fe9c85ADPro Consulting Office Directions.pdf);
IfameId.Attribute.Add( scr,path);
<iframe id="ContentPlaceHolder1_pdfiframe" height="600px" width="850px" src="E:\\uploads\\4876baaf-c10a-494c-8e3c-6efd89fe9c85ADPro Consulting Office Directions.pdf"></iframe>
but it is not showing image plz help me out
解决方案
If there are any space b/w in the folder name or PDF it will not take.
Rename the PDF as below.
DPro_Consulting_Office_Directions.PDF
so it can open it.
Or in page load u can write as below.
string path = Server.MapPath(@"E:\\uploads\\4876baaf-c10a-494c-8e3c-6efd89fe9c85ADPro Consulting Office Directions.pdf"); IfameId.Attribute.Add("scr",path);
这篇关于asp.net中的iframe控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文