I'm trying to download a text file to the client and all I can get it to do is open the file here is my code:

public void getFile(string strFileName)
{



string strPath = System.Web.Http Context.Current .Server.MapPath (strFileName);
System.IO.FileI nfo file = new FileInfo(strPat h);

if (file.Exists)
{

System.Web.Http Context.Current .Response.Clear (); ...