asp.net - Display a PDF file from FTP server inside an ASPX page C# -
i have pdf file on ftp server. want display pdf file using asp.net.
i used google viewer in iframe control:
<iframe src="http://docs.google.com/gview?url=ftp://samplepdf.com/sample.pdf" style="width:718px; height:700px;" frameborder="0"></iframe> it worked while viewing pdfs public servers. problem need give ftp username , password pdf displayed on asp.net page.
any thoughts?
thanks in advance
edit:
i can use url=ftp://username:pass@ftp.samplesite.com/...
but dont want username , password attached url.
i tried code:
<div><object data="ftp://username:pass@ftp.website.com/website.com/wwwroot/folderpath/test.pdf" type="application/pdf" width="800" height="1000"> alt : <a href="ftp://username:pass@ftp.website.com/website.com/wwwroot/folderpath/test.pdf">test.pdf</a> </object> </div> and works well. tho ftp username , password still shown in page source. ideas? thanks
Comments
Post a Comment