SA
Saranyan
February 13, 2008 11:28 AM UTC
HttpContext.Current.Response.Clear();
HttpContext.Current.Response.AddHeader("Content-Disposition", "attachment; filename=" + strPath.Name);
HttpContext.Current.Response.AddHeader("Content-Length", strPath.Length.ToString());
HttpContext.Current.Response.ContentType = "application/octet-stream";
HttpContext.Current.Response.ContentType = "text";
HttpContext.Current.Response.WriteFile(strPath.FullName);
HttpContext.Current.Response.End();
SA
Saranyan
February 13, 2008 11:30 AM UTC
HttpContext.Current.Response.ContentType = "text";