SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Development Tools
 ASP.NET
 [HELP] Auto Save Default Folder
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

knockyo
Yak Posting Veteran

83 Posts

Posted - 02/14/2014 :  21:07:22  Show Profile  Reply with Quote
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()


If I want to auto save into virtual directory, can I have your help to comment my code above so that I can auto save into specific folder path.

Many thanks :)
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.14 seconds. Powered By: Snitz Forums 2000