Click here to Skip to main content
15,896,118 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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

"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:
HTML
<a href="http://myDomain.com/myfolder/myfile.ext" target="_blank">Human readable description</a>
 
Share this answer
 
Comments
riodejenris14 4-Jul-13 4:57am    
it showing the file but not getting downloaded!!!!
download button code:

C#
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.
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900