Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#4.0
I developed a window application.
I deployed it and I had the setup of the project.
 
My Query:
How and where shall I upload the setup in web?
How do i create a download link for the setup, when the user start clicking the link the download should starts?
Posted 3-Jul-13 22:29pm
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

"How and where shall I upload the setup in web?"
Totally up to you - you could post it to your own website, or find a site willing to show it - it might be worth looking at sites concerned with whatever it is your application actually does.
 
"How do i create a download link for the setup, when the user start clicking the link the download should starts?"
Just provide a link to the file:
<a href="http://myDomain.com/myfolder/myfile.ext" target="_blank">Human readable description</a>
  Permalink  
Comments
muhammed riyaaz at 4-Jul-13 4:57am
   
it showing the file but not getting downloaded!!!!
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

download button code:
 
 string strURL = @"Jellyfish.jpg";
            WebClient req = new WebClient();
            HttpResponse response = HttpContext.Current.Response;
            response.Clear();
            response.ClearContent();
            response.ClearHeaders();
            response.Buffer = true;
            response.AddHeader("Content-Disposition", "attachment;filename=\"" + Server.MapPath(strURL) + "\"");
            byte[] data = req.DownloadData(Server.MapPath(strURL));
            response.BinaryWrite(data);
            response.End();
 
it will download the file present in your project folder.
  Permalink  

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

  Print Answers RSS
0 BillWoodruff 330
1 Mathew Soji 309
2 Maciej Los 295
3 DamithSL 225
4 Afzaal Ahmad Zeeshan 217
0 OriginalGriff 6,369
1 Sergey Alexandrovich Kryukov 5,973
2 DamithSL 5,183
3 Manas Bhardwaj 4,673
4 Maciej Los 4,025


Advertise | Privacy | Mobile
Web02 | 2.8.1411019.1 | Last Updated 5 Jul 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

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