public void DownloadFile()
HttpContext.Current.Response.AppendHeader("Content-Disposition", String.Format("attachment; filename={0}", "YourFileName"));
HttpContext.Current.Response.ContentType = "application/pdf";
HttpContext.Current.Response.BinaryWrite(myBytes);
var request = HttpContext.Current.Request;
var fileCollection = request.Files;
var anyExtraParamter = request.Params["anyExtraParamter"];
for (int i = 0; i < fileCollection.Count; i++)
var postedFile = fileCollection[i];