use the content-disposition header !
look at any e-mail with an attachement - in it's source there should be the
header:
content-dispostion: attachement; filename=<filename>
(i'm not sure if this is 100% right)
"attachement" forces the saveas-dialog even if the content-type would be
text/plain or text/html - "inline" would force the browser to show the
content ...
----- Original Message -----
From: "Stephen Bardsley" <[EMAIL PROTECTED]>
To: "Apache::ASP Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, August 10, 2001 12:29 AM
Subject: Change default file name...
> Greetings,
>
> I am printing data from a script directly back
> to the browser. The data is text but not HTML.
> I have changed the ContentType, which in turn
> forces the "SaveAs" dialog to be raised. So
> far so good...
>
> What I would like to do is dictate the default
> file name in the "SaveAs" dialog. Can it be done?
> Thanks.
>
> Steve
> _____________________
> Stephen Bardsley
> RLW Inc.
> Malta, NY
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]