Prompt browser to download file from browser in asp.net using c#
<p>i m unable to download mp3 file from 3rd party servers , using general code give me
error of need virtual path to download..
using this code :</p>

<pre><code>var fileInfo = new System.IO.FileInfo(filePath);

Response.ContentType = "application/octet-stream";

Response.AddHeader("Content-Disposition", String.Format("attachment;filename=\"{0}\"", filePath));

Response.AddHeader("Content-Length", fileInfo.Length.ToString());

Response.WriteFile(filePath);

Response.End();
</code></pre>

<p>error comes that no virtual path set...i repeat i need to download from 3rd party servers with
full url</p>
