Click here to Skip to main content
14,031,365 members
Rate this:
 
Please Sign up or sign in to vote.
See more:
I see on the articles link to download some codes. When I click on the link, a dialog of download is opened.

Do you have any code that do it? I search after something like this, that asks where to save or open it in the client computer...
Posted
Updated 2-Feb-10 8:39am
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

that dialog box is not code generated. It is displayed by the browser.
   
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

ok.
i understand.
so how can i use it.
   
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 3

The obvious way is by having a link to your file. You can also set the MIME type and writing your file with Response.WriteFile or similar.
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Cookies | Terms of Service
Web02 | 2.8.190419.4 | Last Updated 3 Feb 2010
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100