Search code examples
c#asp.netsave-dialog

Display Save File Dialog for a string ASP.NET C#?


I am generating a string, which right after generating I want to display a save dialog to allow this to be saved to the user's local machine. I don't want to save it to a file on the server, just have the user save it then clear out the string. Is this possible? I looked at SaveFileDialog but wasn't sure if it would accomplish this. Any help is appreciated, thanks!


Solution

  • You need to set certain headers to raise a file dialog box on the client. I think this is what you mean.

    See here:

    http://support.microsoft.com/kb/260519