[thelist] site check - browser

Joshua Olson joshua at waetech.com
Thu Oct 16 08:20:12 CDT 2003


From: "Andrew" <andrew at humanbehaviour.co.uk>
Sent: Thursday, October 16, 2003 8:19 AM


> 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>

<><><><><><><><><><>
Joshua Olson
Web Application Engineer
WAE Tech Inc.
http://www.waetech.com
706.210.0168



More information about the thelist mailing list