Re: Downloading file from database
- From: "Edwin Knoppert" <info@xxxxxxxxxxxxxxxxxxx>
- Date: Thu, 24 Nov 2005 23:33:46 +0100
Oh, i meant it the other way around, by NOT using the real type like pdf but
that inary, you get the download fialog.
But now i see you don't want that.
You might consider to open an new window and point to the pdf.
But i don't think you'll be able to determine if the pdf get's loaded IN the
window or not.
So, leave it to the user..
"Jeremy Chapman" <me@xxxxxxxx> schreef in bericht
news:%23oL8xQU8FHA.2816@xxxxxxxxxxxxxxxxxxxxxxx
> The type is correct. But for some types windows displays them using IE,
> and in that case it displays it in the same window as the list of files.
> If it's in IE, I want it to display in a seperate window.
>
>
> "Edwin Knoppert" <info@xxxxxxxxxxxxxxxxxxx> wrote in message
> news:dm5bfs$ok1$1@xxxxxxxxxxxxxxxxxx
>> Just the correct content type.
>> I enforce downloading PDF instead of viewing it this way.
>>
>>
>> "Jeremy Chapman" <me@xxxxxxxx> schreef in bericht
>> news:%23qdT31T8FHA.3804@xxxxxxxxxxxxxxxxxxxxxxx
>>>I have build a web page that lists files in a database. When the user
>>>clicks on the file the page streams the file contents to the browser with
>>>code like:
>>> Response.AppendHeader("Content-Disposition","attachment;filename=" +
>>> strFileName);
>>> Response.AppendHeader("Content-Length",lLength.ToString());
>>> Response.ContentType = strContentType;
>>> Response.BinaryWrite(binData);
>>>
>>> My problem is that if the file is html or xml, it appears in the browser
>>> window. If the file is jpg, text, etc it appears in a seperate
>>> application window. The desired behaviour is to always show the
>>> document in a seperate window, but I can't write specific code to handle
>>> each file type individually. Is it possible to force the file to
>>> download a view in a seperate window?
>>>
>>
>>
>
>
.
- References:
- Downloading file from database
- From: Jeremy Chapman
- Re: Downloading file from database
- From: Edwin Knoppert
- Re: Downloading file from database
- From: Jeremy Chapman
- Downloading file from database
- Prev by Date: Re: Downloading file from database
- Next by Date: Re: Laptop specs for VS 2005 development?
- Previous by thread: Re: Downloading file from database
- Next by thread: Re: Downloading file from database
- Index(es):
Relevant Pages
|