Posted on: 3/6/2014 3:56:29 PM | Views : 588

We have a intranet site that we present links to reports on a certain page..
We have setup a really simple gridview to display the links with hyperlinks to the files..
the path of the files are stored in the DB and the hyperlinks are pointing to those paths..
here is what the path is stored like in the table
\\ServerName\pdfDirectory\11953720\456\40\25\Reports\01-29-2014\2014-01-18[88][W3]-Report.pdf In the gridview template we have the hyperlink like this
<ItemTemplate> <asp:HyperLink ID="hypPDF" runat="server" NavigateUrl='<%# Bind("path_to_pdf") %>' Text='<%# Bind("title") %>' Target="_blank"></asp:HyperLink> </ItemTemplate> Am i missing somethign that would force the browser to open the file or even force to download it?

Go to the complete details ...