hello i want to download file in asp.net using c#?

i upload a file with filename+ path+guid..

i want to download this file on page ..user can see download file link and download the file how its possible in asp.net Using c#...?

kindly tellme as soon as possible thanks in advance......

Recommended Answers

All 2 Replies

If you use a FileUpload server control you should be able to get this information and more, this is the link from the MS site:
Click Here

Ooops Forgot about the download part!!! You could put the file on a publically shared folder on your web server and point directly at it, BUT, I would not for security reasons. What you should do is stream a copy of the file down to them in their browser that way they are not actually accessing any folders on your servers. They will get a do you wish to save or view dialog box.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.