Author: Satheesh Pagolu | Posted on: 2/5/2009 5:13:50 AM | Views : 275

hai friends....

i am writing the code like below,for download/read/cancel a file...

(most of could have done this)

      Response.Clear();
            Response.AddHeader("Content-Disposition", "attachment; filename=" + file.Name);
            Response.AddHeader("Content-Length", file.Length.ToString());
            Response.ContentType = "application/octet-stream";
            Response.WriteFile(file.FullName);
Go to the complete details ...