Try creating an ASPX page that opens and reads the file, and then sets the
Response.ContentType property to "application/octet-stream" and then
Response.BinaryWrite()s the file to the output stream. Then you can link to
this file, and you should get the desired effect.
HTH,
Kevin Spencer
Microsoft FrontPage MVP
Internet Developer
http://www.takempis.com
Big things are made up of
lots of Little things.
"John" <(E-Mail Removed)> wrote in message
news:010901c33b2c$46cc9bc0$(E-Mail Removed)...
> Hi,
>
> I generate a report in a comma delimited file and give it
> a name like MyReport.csv . I then set a Hyperlink
> control to point tp the file
>
> HyperLink1.text = "Download"
> Hyperlink1.NavigateUrl = "MyReport.csv"
>
> When the user clicks the HyperLink I would always like to
> see the dialog come up that asks if you want to 'Open' the
> file or 'Save' the file to disk.
>
> I get mixed results. If the client has Excel installed
> then this dialog does not come up and IE pops the file
> into a spread sheet. If Excel is not installed then IE
> pops the file up in a text window (same thing happens if I
> delete the csv from the folder options).
>
> If I change the file extension to something strange
> like .xyz123 then it always comes up with the dialog but
> I want the user to have the option to save the file as
> csv.
>
> Anyway, is there some way to force this to always come up
> with the Open or Save dialog?
>
> Tks,
> JOhn