I'm trying to make a request in javascript to call an aspx function with the intention of it returning a .txt file as a save-as dialog in IE (only needs IE support).
The hitch is I need the Javascript to send a string to the aspx, which then uses the string to dynamically generate a .txt file to send back for saving.
Something like the dynamic example here but with a txt file: http://www.west-wind.com/weblog/posts/2007/May/21/Downloading-a-File-with-a-Save-As-Dialog-in-ASPNET
What request do I need to make to the server to get it back as a "Save As" prompt?
Examples would be fantastic.