BeetleDev.com
info
Saturday, September 26, 2020
Beetle Blog
Force file download with VBScript
By: douglas - Classic ASP - 10/3/2002 12:00:00 AM

Normally when you click on a link to a file the browser will try to read or open that file automatically. This code will force the browser to open the "Save As..." dialog box using a swf file as an example.

<% 
response.ContentType="application/x-shockwave-flash" 
response.AddHeader "content-disposition","attachment; filename=button1.swf" 
server.execute("button1.swf") 
response.End() 
%>


Last Modified: 11/17/2002 12:00:00 AM

Beetle Blog v0.2.2


Copyright © 1997 - 2020 BeetleDev.com. All rights reserved.