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 OriginalGriff 270
1 Sergey Alexandrovich Kryukov 185
2 BillWoodruff 173
3 CPallini 155
4 Kamal Rocks 144
0 OriginalGriff 5,655
1 DamithSL 4,506
2 Maciej Los 3,997
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,180


Advertise | Privacy | Mobile
Web02 | 2.8.141216.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