链接到PDF文件不适用于Server 2003 [英] Link to PDF file doe not work on Server 2003

查看:65
本文介绍了链接到PDF文件不适用于Server 2003的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个网页表单,用户可以点击链接,然后转到PDF文件。在开发PC上它起作用。所有PDF都在一个名为PDF的文件夹中,我用超链接属性映射它。我保存了Web项目并将其发布到一个文件夹。然后我把文件夹放在Inetpub\wwwroot文件夹中。 Adobe阅读器在服务器上,FireFox的插件正在运行。为什么它对网站不起作用?我做错了什么?



这是超链接的标记代码:



I have a web form that the user can click on a link and it goes to the PDF file. On the developing PC it works. All of the PDF's are in a folder named PDF and I mapped it with the hyper link properties. I saved the web project and Published it to a folder. I then put the folder in the Inetpub\wwwroot folder. Adobe reader is on the server and the plugin for FireFox is working. Why doesn't it work for the web site? What did I do wrong?

Here is the markup code for the hyperlink:

<td style="text-align: center">
                <asp:HyperLink ID="HyperLink10" runat="server" 

                    NavigateUrl="~/fpapp2013FORMA.pdf" style="font-weight: 700">Financial Profile PDF</asp:HyperLink>
            </td>

推荐答案

找到这些链接可以帮到你:

如何在asp.net中创建文件下载超链接? [ ^ ]

从Asp.Net中的服务器下载文件 [ ^ ]

似乎在ASP.NET上构建一个下载超链接并不像人们乍一看那么简单。



祝你好运。
Found these links that may help you:
how to create a hyperlink for file download in asp.net?[^]
Download File From Server In Asp.Net[^]
It seems building a download-hyperlink on ASP.NET is not as straightforward as one could think at first glance.

Good luck.


这篇关于链接到PDF文件不适用于Server 2003的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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