Click here to Skip to main content
15,908,776 members
Home / Discussions / C#
   

C#

 
GeneralRe: Multi-Page TIFF support Pin
Luc Pattyn29-Apr-10 3:32
sitebuilderLuc Pattyn29-Apr-10 3:32 
GeneralRe: Multi-Page TIFF support Pin
Jordy "Kaiwa" Ruiter29-Apr-10 3:39
Jordy "Kaiwa" Ruiter29-Apr-10 3:39 
GeneralRe: Multi-Page TIFF support Pin
Luc Pattyn29-Apr-10 3:51
sitebuilderLuc Pattyn29-Apr-10 3:51 
QuestionIs it Possible to download a pdf file from a web page without showing the URL of pdf file in address bar Pin
Puneet Bhatnagar28-Apr-10 22:49
Puneet Bhatnagar28-Apr-10 22:49 
AnswerRe: Is it Possible to download a pdf file from a web page without showing the URL of pdf file in address bar Pin
Gaurav Dudeja India28-Apr-10 22:57
Gaurav Dudeja India28-Apr-10 22:57 
GeneralRe: Is it Possible to download a pdf file from a web page without showing the URL of pdf file in address bar Pin
Matt Meyer29-Apr-10 6:12
Matt Meyer29-Apr-10 6:12 
AnswerRe: Is it Possible to download a pdf file from a web page without showing the URL of pdf file in address bar [modified] Pin
Covean29-Apr-10 0:18
Covean29-Apr-10 0:18 
AnswerRe: Is it Possible to download a pdf file from a web page without showing the URL of pdf file in address bar Pin
AspDotNetDev29-Apr-10 10:42
protectorAspDotNetDev29-Apr-10 10:42 
Assuming ASP.Net...

Create a button. In the click handler, write the file to the HTTP response, as the previous poster suggested. That way, you aren't using a different URL. The only way they can get the file would be to click the button. You can have whatever logic you like to decide when to display that button, or if they manage to click the button when they are not allowed, you can add additional validation to prevent the download. You could, for example, validate that the user has never downloaded the PDF before so that they can't download it a second time. If they have already downloaded it, you could show a message that says "sorry, but you are only allowed to download this PDF once". The PDF data you return can come from the server file system or from a database on the server (or even from another server). Where you want to get the PDF from is up to you.

GeneralRe: Is it Possible to download a pdf file from a web page without showing the URL of pdf file in address bar Pin
PunkIsNotDead29-Apr-10 17:18
PunkIsNotDead29-Apr-10 17:18 
GeneralRe: Is it Possible to download a pdf file from a web page without showing the URL of pdf file in address bar Pin
AspDotNetDev29-Apr-10 17:25
protectorAspDotNetDev29-Apr-10 17:25 
AnswerRe: Is it Possible to download a pdf file from a web page without showing the URL of pdf file in address bar Pin
PunkIsNotDead29-Apr-10 17:35
PunkIsNotDead29-Apr-10 17:35 
QuestionClearing an array of images Pin
Wamuti28-Apr-10 22:23
Wamuti28-Apr-10 22:23 
AnswerRe: Clearing an array of images Pin
Mycroft Holmes28-Apr-10 23:37
professionalMycroft Holmes28-Apr-10 23:37 
AnswerRe: Clearing an array of images Pin
Luc Pattyn29-Apr-10 1:07
sitebuilderLuc Pattyn29-Apr-10 1:07 
AnswerRe: Clearing an array of images Pin
AspDotNetDev29-Apr-10 11:54
protectorAspDotNetDev29-Apr-10 11:54 
QuestionEvery possible group of items in an array/set/... [SOLVED] Pin
Bart Van Eyndhoven28-Apr-10 21:59
Bart Van Eyndhoven28-Apr-10 21:59 
GeneralRe: Every possible group of items in an array/set/... Pin
harold aptroot28-Apr-10 22:09
harold aptroot28-Apr-10 22:09 
GeneralRe: Every possible group of items in an array/set/... Pin
Bart Van Eyndhoven28-Apr-10 22:59
Bart Van Eyndhoven28-Apr-10 22:59 
GeneralRe: Every possible group of items in an array/set/... Pin
Alan Balkany29-Apr-10 4:00
Alan Balkany29-Apr-10 4:00 
AnswerRe: Every possible group of items in an array/set/... Pin
PIEBALDconsult29-Apr-10 3:45
mvePIEBALDconsult29-Apr-10 3:45 
GeneralRe: Every possible group of items in an array/set/... Pin
Bart Van Eyndhoven29-Apr-10 22:21
Bart Van Eyndhoven29-Apr-10 22:21 
GeneralRe: Every possible group of items in an array/set/... Pin
harold aptroot29-Apr-10 6:01
harold aptroot29-Apr-10 6:01 
AnswerRe: Every possible group of items in an array/set/... Pin
Kythen29-Apr-10 6:44
Kythen29-Apr-10 6:44 
QuestionExcel Interop Pin
nuonxxx28-Apr-10 21:27
nuonxxx28-Apr-10 21:27 
Questiondelegates and events in c# Pin
jitendra sandu28-Apr-10 21:09
jitendra sandu28-Apr-10 21:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.