•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 402,617 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,273 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 633 | Replies: 6 | Solved
![]() |
•
•
Join Date: Oct 2007
Location: Bristol, UK
Posts: 1,124
Reputation:
Rep Power: 3
Solved Threads: 47
Could you try adding the files to the server and then pointing a hyperlink to them to download them or must you have a download box?
If you have a quality, be proud of it and let it define you. Add it to the world!
If you got your answer, please mark the thread as Solved. It saves time when people are looking to contribute threads or for answers!
If you got your answer, please mark the thread as Solved. It saves time when people are looking to contribute threads or for answers!
•
•
Join Date: Oct 2007
Location: Bristol, UK
Posts: 1,124
Reputation:
Rep Power: 3
Solved Threads: 47
Right I see, I remember once I tried to do this. That was a while back mind, and I didn't find a solution. However, I will do some research, hold on..
If you have a quality, be proud of it and let it define you. Add it to the world!
If you got your answer, please mark the thread as Solved. It saves time when people are looking to contribute threads or for answers!
If you got your answer, please mark the thread as Solved. It saves time when people are looking to contribute threads or for answers!
i have found it at the following address : http://www.dotnet247.com/247referenc...30/152516.aspx
string filename = "C:\MyFolder\MyFile.xyz";
System.IO.FileInfo file = new System.IO.FileInfo(fileName);
Response.Clear(); // clear the current output content from the buffer
Response.AppendHeader("Content-Disposition", "attachment; filename=" + file.Name);
Response.AppendHeader("Content-Length", file.Length.ToString());
Response.ContentType = "application/octet-stream";
Response.WriteFile(file.FullName);
Response.End(); Serkan Şendur
MCAD.NET
MCAD.NET
![]() |
•
•
•
•
•
•
•
•
DaniWeb ASP.NET Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
adobe adsl adsl1 adsl2 adsl2+ bebo blog branding cable connection download economy experiment google india internet kb kbps links mbit media microblogging microsoft mobile devices monetization network news office online per photo player portable media player publishing recession second social media social networking software stocks testing throughput tips upload video vista wifi windows 240000
- I need help (Viruses, Spyware and other Nasties)
- Ay up DMR! Still got about:blank after doing everything! (Viruses, Spyware and other Nasties)
- Homepage has been changed to about:blank (Viruses, Spyware and other Nasties)
- I can't remove about:blank (Viruses, Spyware and other Nasties)
- Another Trojan.Bookmarker.Gen (Viruses, Spyware and other Nasties)
Other Threads in the ASP.NET Forum
- Previous Thread: sending email in specific domain..........
- Next Thread: Tab Control in asp.net2005



Linear Mode