all groups > asp.net announcements > september 2003 >
You're in the

asp.net announcements

group:

How to Save a File


How to Save a File Tina
9/29/2003 4:18:04 PM
asp.net announcements:
I have a string that I want the browser user to save to his local disk.
Since there is no SaveFileDialog class in ASP how can I allow a user to save
this text file?
Thanks,
Tina

Re: How to Save a File Wim Hollebrandse
10/2/2003 12:21:04 AM
First of all, the announcements newsgroup is not the best suited newsgroup
to ask questions like this. More appropriate would have been the
microsoft.public.dotnet.framework.aspnet newsgroup.

Back to your question though; SaveFileDialog can't work in ASP.NET as these
pages run on the server, and SaveFileDialog is a client side winforms
control.

Best thing to do is create a temporary ASCII text file on the server and
create a HREF to that file so users can click on it and save it.

Cheers,
Wim Hollebrandse
http://www.wimdows.net
http://www.wimdows.com

[quoted text, click to view]

AddThis Social Bookmark Button