help with download files
-
Currently i have a couple files on the web site, if a user clicks a link point to the file on the server, the typical gray box asking to open or run pops up. Great. Well now I am removing the links and replacing it with a call to a web service. I have no problem getting the files from the webservice. My problem is giving the user a way to pick a location to save the file. I would like the standard windows SaveAs dialog to popup (instead of the Open dialog box like when using a input control). Any help would be appriecated. Thanks David
-
Currently i have a couple files on the web site, if a user clicks a link point to the file on the server, the typical gray box asking to open or run pops up. Great. Well now I am removing the links and replacing it with a call to a web service. I have no problem getting the files from the webservice. My problem is giving the user a way to pick a location to save the file. I would like the standard windows SaveAs dialog to popup (instead of the Open dialog box like when using a input control). Any help would be appriecated. Thanks David
Could you clarify this part: David Flores wrote: (instead of the Open dialog box like when using a input control). Thanks, Jon Vickers
-
Could you clarify this part: David Flores wrote: (instead of the Open dialog box like when using a input control). Thanks, Jon Vickers
When you click the browse button of a html input control, the standard file open dialog popups up for you to select a file when you are trying to upload a file. i want the reverse. i want the file save version of the dialog box.
-
When you click the browse button of a html input control, the standard file open dialog popups up for you to select a file when you are trying to upload a file. i want the reverse. i want the file save version of the dialog box.
Isn't that what it does already. You click on the file, then click "Save As" and the file save dialog box opens to browse and save the file? Thanks, Jon Vickers
-
Isn't that what it does already. You click on the file, then click "Save As" and the file save dialog box opens to browse and save the file? Thanks, Jon Vickers
For the html input control its a "Open" dialog box. When clicking on a link to download a file, yes a "Save as" dialog opens up but I want to be able to popup the save as dialog box automatically, at any time. the reason is i am recieving a memory stream from a webservice which i then need to write to the clients computer, but i need the client to pick a place to save it...that is where the popuping up the save as dialog box comes in. hope i am not too confusing
-
For the html input control its a "Open" dialog box. When clicking on a link to download a file, yes a "Save as" dialog opens up but I want to be able to popup the save as dialog box automatically, at any time. the reason is i am recieving a memory stream from a webservice which i then need to write to the clients computer, but i need the client to pick a place to save it...that is where the popuping up the save as dialog box comes in. hope i am not too confusing
I think I know what you are talking about. You don't want them to click a link, the file just starts coming down? Depending on your page/site design you may have to use some sort of javascript to control "popup at any time". But, as far, as I can tell what you are talking about, you need to create an aspx page that does a response.binary write to the browser. You will have to search around as there are some headers that need to be set. Such as: file size, mime type, etc. But I have done this many times to binary write pdf and jpg files directly from an aspx page. I can't find any code at the moment but there are many examples out there. Thanks, Jon Vickers