Posted on: 2/14/2014 11:08:16 AM | Views : 692

Hi All,
I wishes to auto save my attachment file into a defaul folder named "D:\Output" and my code below always prompt me manual save.
I need your expertise experience and help me to enhance the code below,
Dim context As HttpContext = HttpContext.Current context.Response.Clear() context.Response.ClearHeaders() context.Response.ClearContent() context.Response.Cache.SetCacheability(HttpCacheability.NoCache) context.Response.ContentType = "text/csv" context.Response.AddHeader("Content-Disposition", "attachment; filename=Partner.csv") context.Response.Charset = Encoding.UTF8.WebName context.Response.ContentEncoding = Encoding.UTF8 context.Response.BinaryWrite(Encoding.UTF8.GetPreamble) context.Response.Write(ExportToCSVFile(dtResult)) context.ApplicationInstance.CompleteRequest() Thanks All. Go to the complete details ...