How to Open PDF document in asp.net web page without asking save/open/cacel dialogue

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: May 2008
Posts: 3
Reputation: rakeshbpatel is an unknown quantity at this point 
Solved Threads: 0
rakeshbpatel rakeshbpatel is offline Offline
Newbie Poster

How to Open PDF document in asp.net web page without asking save/open/cacel dialogue

 
0
  #1
May 22nd, 2008
Hi,

How to Open PDF document in asp.net web page without asking save/open/cacel dialogue .

I have tried but every time it prompts for saving/opening or cancel action.

Thanks in advance.

Rakesh
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 1,293
Reputation: majestic0110 has a spectacular aura about majestic0110 has a spectacular aura about majestic0110 has a spectacular aura about 
Solved Threads: 67
majestic0110's Avatar
majestic0110 majestic0110 is offline Offline
Nearly a Posting Virtuoso

Re: How to Open PDF document in asp.net web page without asking save/open/cacel dialogue

 
0
  #2
May 22nd, 2008
Hi there Rakesh here is a great site that fully explains how to open a PDF without the dialog box:

I hope this helps! Please don't forget to mark the thread as solved!
If you have a quality, be proud of it and let it define you. Add it to the world!
If you got your answer, please mark the thread as Solved. It saves time when people are looking to contribute threads or for answers!
Reply With Quote Quick reply to this message  
Join Date: May 2008
Posts: 3
Reputation: rakeshbpatel is an unknown quantity at this point 
Solved Threads: 0
rakeshbpatel rakeshbpatel is offline Offline
Newbie Poster

Re: How to Open PDF document in asp.net web page without asking save/open/cacel dialogue

 
0
  #3
May 22nd, 2008
Hi,

Thanks for your prompt reply.

I had tried the same things also but it invokes the dialogue box for saving/opening.

Regards,
Rakesh
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 1,293
Reputation: majestic0110 has a spectacular aura about majestic0110 has a spectacular aura about majestic0110 has a spectacular aura about 
Solved Threads: 67
majestic0110's Avatar
majestic0110 majestic0110 is offline Offline
Nearly a Posting Virtuoso

Re: How to Open PDF document in asp.net web page without asking save/open/cacel dialogue

 
0
  #4
May 22nd, 2008
hmmmm are you sure that gives a dialog pop up? Try this one:

If you have a quality, be proud of it and let it define you. Add it to the world!
If you got your answer, please mark the thread as Solved. It saves time when people are looking to contribute threads or for answers!
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 291
Reputation: ericstenson is an unknown quantity at this point 
Solved Threads: 29
Team Colleague
ericstenson's Avatar
ericstenson ericstenson is offline Offline
Posting Whiz in Training

Re: How to Open PDF document in asp.net web page without asking save/open/cacel dialogue

 
0
  #5
May 23rd, 2008
try a response.redirect to the document. i should not ask.
--
"Dummy."
Reply With Quote Quick reply to this message  
Join Date: Apr 2009
Posts: 1
Reputation: laurichi is an unknown quantity at this point 
Solved Threads: 0
laurichi's Avatar
laurichi laurichi is offline Offline
Newbie Poster

Re: How to Open PDF document in asp.net web page without asking save/open/cacel dialogue

 
0
  #6
Apr 21st, 2009
Hey, maybe
  1. Response.Redirect("pdfpath/pdfdoc.pdf");

is what you're looking for?
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 1
Reputation: cybernaresh is an unknown quantity at this point 
Solved Threads: 0
cybernaresh cybernaresh is offline Offline
Newbie Poster

Re: How to Open PDF document in asp.net web page without asking save/open/cacel dialogue

 
0
  #7
Jun 27th, 2009
EXCELLENT SINGLE LINE ANSWER! laurichi
Reply With Quote Quick reply to this message  
Join Date: Jun 2009
Posts: 88
Reputation: IdanS is an unknown quantity at this point 
Solved Threads: 12
IdanS IdanS is offline Offline
Junior Poster in Training

Re: How to Open PDF document in asp.net web page without asking save/open/cacel dialogue

 
0
  #8
Jun 27th, 2009
I'm not sure that is the right solution, because if you redirect to a pdf file so the user on the other side has to have AcrobatReader on his machine, AcrobatReader know to open the file on the explorer, think of it as en addin to explorer so with out it the explorer does not know how to open the PDF file.
There is a simple solution posted by Microsoft in the next link:
http://support.microsoft.com/kb/307603/EN-US/
I think its a better solution, but what ever you like.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC