Wrox Programmer Forums
|
ASP.NET 4.5 General Discussion For ASP.NET 4.5 discussions not relating to a specific Wrox book
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 4.5 General Discussion section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 8th, 2014, 09:45 AM
Registered User
 
Join Date: Sep 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default pdf always displaying

I have an application written in visual basic. When the user clicks on the selection from the drop down box the pdf displays (using a response.redirect). To get back to the app users have to use the back arrow in the browser. Once back to the app no matter what they click on it goes back to the pdf page. Any help would be greatly appreciated.

Thanks in advance,

D-Bar
 
Old August 8th, 2014, 05:26 PM
Friend of Wrox
 
Join Date: Feb 2014
Posts: 136
Thanks: 1
Thanked 10 Times in 10 Posts
Default

does the pdf reside somewhere that IIS can serve it in a link? i.e. under a virutal directory path if so using redirects and jsut supply a download link that opens a new window that the pdf can be displayed in.


example
Code:

<asp:HyperLink ID="hprlnkMyFile" runat="server" NavigateUrl="http:\\urlToMyVirutalDownloadDirectory\filetodownload.pdf" Target="_blank" Text="Download file Name" />
this of course can be dynamic by binding the appropriate events to set the text, and navigate url. anc can also be applied to a gridview of each with its own file link to download. The important thing is setting the target to "_blank" (shown in blue) this instucts the browser to open a new window to render the link.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Help on PDF generation and emailing PDF as an attachment form a single form skhan Beginning PHP 0 November 30th, 2010 10:26 AM
Hyperlink in PDF not working (XML to PDF using XSL-FO stylesheet) sidh.000 XSLT 0 September 30th, 2010 12:53 PM
Run PDF Reader and PDF file with Cmd Button RodM Access VBA 3 April 21st, 2009 12:43 PM
Dot net - Converting word to pdf and pdf to word Manoah Classic ASP Basics 2 July 7th, 2008 10:21 PM
displaying pdf, .chm files within a C# application connect2sandep General .NET 3 January 8th, 2006 01:56 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.