Posted on: 3/24/2012 8:08:26 AM | Views : 481

Im looking to add a button so the user can click the button and a file will download. I found some sample code however I need help finding exactly what I need to modify to make this work. So i have two questions.
1. What and were do I need to modify to make this work ---> where do i change the file path.... and what do i have to modify.  the file will be an mp3
2. Can I put a button on my page and double click it to go to the .cs page And than I put this code in the click event of the button correct? Thanks in advance
 
private void btnDownload_Click(object sender, System.EventArgs e)
{
// The file path to download.
string filepath = @"C:\shadow_copy.rar";
// The file name used to save the file to the client's system..
Go to the complete details ...