Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

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

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.ContentType = "text/csv"
context.Response.AddHeader("Content-Disposition", "attachment; filename=Partner.csv")
context.Response.Charset = Encoding.UTF8.WebName
context.Response.ContentEncoding = Encoding.UTF8

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  
 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.02 seconds. Powered By: Snitz Forums 2000