Link to home
Start Free TrialLog in
Avatar of emi_sastra
emi_sastra

asked on

How to write download file code using ASP NET 2?

Hi,

In ASP NET 2, it has an "FileUpload" control. I can use it easily.

How about "FileDownLoad" ? Is there any control for it?

Thank you.
Avatar of Chandan_Gowda
Chandan_Gowda
Flag of United States of America image

Where is your file located in database or in the folder loacated in server
Avatar of Bob Learned
There isn't any "control" per se, but there is the System.Net.WebClient or HttpWebRequest classes that can help you with downloading.

Bob
Avatar of emi_sastra
emi_sastra

ASKER

Where is your file located in database or in the folder loacated in server ?

In the folder located at Server.

There isn't any "control" per se, but there is the System.Net.WebClient or HttpWebRequest classes that can help you with downloading.

Could you provide code ?

Thank you.

I would provide code, but you didn't specify a language.

Bob
ASKER CERTIFIED SOLUTION
Avatar of Mortaza Doulaty
Mortaza Doulaty
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I would provide code, but you didn't specify a language.

Sorry, just reply.
Oops, I use vb 2005.

Thank you.
Hi,

My sample code was in VB 2005, have you tried it?
My sample code was in VB 2005, have you tried it?

It solve my problem.

Thank you very much.