[thelist] site check - browser

Andrew andrew at humanbehaviour.co.uk
Mon Oct 27 12:37:21 CST 2003


thanks to everyone who provided feedback greatly appreciated :)

Andrew

>-----Original Message-----
>From: Joshua Olson [mailto:joshua at waetech.com]
>Sent: 16 October 2003 14:20
>To: andrew at humanbehaviour.co.uk; thelist at lists.evolt.org
>Subject: Re: [thelist] site check - browser
>
>> http://www.businessa2z.co.uk/index.php
>
>This may be a bit nit-picky ( :-) but the page title says I can find
>Candlestick Makers, but yet I do not see that in the dropdown after I drill
>into city/county.
>
><tip type="ASP" author="Joshua Olson">
>If you need to send files to the browser you may be able to adopt the
>following code:
>
>original_filname = "foobar.zip"
>server_filename = "TEMPFILENAME.DAT"
>mime = "application/x-zip-compressed"
>
>Response.Clear
>Response.Buffer = False
>Response.ContentType = mime
>Response.AddHeader "content-type", mime
>Response.AddHeader "content-disposition", "attachment; filename=" &
>original_filename
>
>Set oStream = Server.CreateObject("ADODB.Stream")
>oStream.Open
>oStream.Type = 1
>oStream.LoadFromFile Server.MapPath("/documents") & "\" & server_filename
>
>Response.BinaryWrite oStream.Read
>oStream.Close
>Set oStream = Nothing
>
>Response.End
></tip>



More information about the thelist mailing list