Click here to Skip to main content
15,901,284 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: IIS Printing (Help Required!) Pin
Kevin Gutteridge21-Nov-01 3:34
Kevin Gutteridge21-Nov-01 3:34 
GeneralRe: IIS Printing (Help Required!) Pin
Carolina27-Nov-01 4:18
Carolina27-Nov-01 4:18 
GeneralRe: IIS Printing (Help Required!) Pin
Kevin Gutteridge27-Nov-01 19:23
Kevin Gutteridge27-Nov-01 19:23 
GeneralCreating a js file to hold image addresses Pin
19-Nov-01 12:56
suss19-Nov-01 12:56 
Generalusing ASP in flash 5.0 Pin
vbcrazeee19-Nov-01 7:22
vbcrazeee19-Nov-01 7:22 
GeneralRe: using ASP in flash 5.0 Pin
Philip Patrick23-Dec-01 7:25
professionalPhilip Patrick23-Dec-01 7:25 
GeneralResponse.ContentType (XLS) Pin
19-Nov-01 1:43
suss19-Nov-01 1:43 
GeneralRe: Response.ContentType (XLS) Pin
Jason Jystad21-Nov-01 10:32
Jason Jystad21-Nov-01 10:32 
An application I am working on streams files of several MB out of a database blob and to a browser. They have been only been Word doc files, but I would assume that all file types are handled the same.

Here is a snip of the code I use:

<%
Response.Buffer = TRUE
Response.ContentType = "application/vnd.ms-word"
StrContentDisp = "inline; filename=" & objRs("Document_Filename")
Response.AddHeader "content-disposition", StrContentDisp
Response.BinaryWrite objRs("Document")
%>


I also had odd problems until I started doing the .AddHeader to declare the document to be inline and pass the filename. The snippet above has worked smoothly ever since.

Obviously the recordset and binarywrite may not be needed for your situation, but they can be substituted out easily enough.

I am using IIS5 and MSSQL2k and ASP3, just for reference. Smile | :)

Hope that helps.

Jason Jystad
Cito Technologies
www.citotech.net

Sonork ID 100.9918

>-------------------------------------------------<
Every program has at least one bug and can be shortened by at least one instruction -- from which, by induction, one can deduce that every program can be reduced to one instruction that doesn't work.
>-------------------------------------------------<
GeneralRe: Response.ContentType (XLS) Pin
22-Nov-01 3:36
suss22-Nov-01 3:36 
GeneralASP.NET Server Side Controls Pin
Bob Groves18-Nov-01 11:30
Bob Groves18-Nov-01 11:30 
GeneralMoved Pin
Jon Sagara16-Nov-01 15:53
Jon Sagara16-Nov-01 15:53 
Questionhow to design send email using form by HTML Pin
14-Nov-01 18:33
suss14-Nov-01 18:33 
AnswerRe: how to design send email using form by HTML Pin
Jon Sagara14-Nov-01 20:45
Jon Sagara14-Nov-01 20:45 
GeneralRe: how to design send email using form by HTML Pin
Ryan Getgen15-Nov-01 4:00
Ryan Getgen15-Nov-01 4:00 
AnswerRe: how to design send email using form by HTML Pin
Carolina27-Nov-01 3:59
Carolina27-Nov-01 3:59 
AnswerRe: how to design send email using form by HTML Pin
Gavin Taylor30-Nov-01 6:29
professionalGavin Taylor30-Nov-01 6:29 
GeneralXSL Help Pin
Lilian Chan-Grant14-Nov-01 6:46
Lilian Chan-Grant14-Nov-01 6:46 
GeneralRe: XSL Help Pin
Digory22-Nov-01 10:39
Digory22-Nov-01 10:39 
GeneralRe: XSL Help Pin
Danny Quinn8-Dec-01 5:26
Danny Quinn8-Dec-01 5:26 
GeneralASP deployment Pin
Michael P Butler14-Nov-01 0:31
Michael P Butler14-Nov-01 0:31 
GeneralCo-author wanted Pin
11-Nov-01 20:01
suss11-Nov-01 20:01 
GeneralXML Node Sorting Pin
9-Nov-01 5:59
suss9-Nov-01 5:59 
GeneralRe: XML Node Sorting Pin
Andres Manggini9-Nov-01 8:13
Andres Manggini9-Nov-01 8:13 
GeneralInserting plug-ins from web page Pin
Malcolm McMahon9-Nov-01 3:17
Malcolm McMahon9-Nov-01 3:17 
GeneralBest development enviroment/tools Pin
Michael P Butler9-Nov-01 1:28
Michael P Butler9-Nov-01 1:28 

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.