title: Downloading file on client side using absolute path .NET
body: <pre><code>  string FilePath = HttpUtility.UrlDecode(Request.QueryString.ToString());
     string[] s = FilePath.Split(new char[] { ',' });
     string path = s[0];
     string FileName = s[1];
      String str = HttpContext.Current.Request.Url.AbsolutePath;
        System.Web.HttpResponse response = System.Web.HttpContext.Current.Response;
        response.ClearContent();
        response.Clear();
        //  response.ContentType = "text/plain";
        response.AddHeader("Content-Disposition", "attachment; filename=" + FileName+ ";");
        response.TransmitFile(path+FileName);
        response.Flush();
        response.End();
  </code></pre>
  
  <p>Above is the code in which i get location of audio file from another page . the audio file is located on a remote machine which is accesible using url e.g. http:\servername\audiofiles\filename.wav . response.Transmit and .WriteFile requires virtual path whereas response.Write() does not download file . How can i give the absolute url instead of virtual path to download file</p>