Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8984603
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T21:08:48+00:00 2026-06-15T21:08:48+00:00

I have an ASP.NET web application. At some step I create a text file

  • 0

I have an ASP.NET web application. At some step I create a text file and store it in a folder on the server. I do this on the server code. But then just after getting done with creating the file I want to download that file to client computer. Is this even possible? I know about John Culviner’s jquery filedownload plugin. But after reviewing it I understood that the file to download must be in the same directory where the web site itself resides – like http://www.mywebsite.com/downloads/text1.txt. But I would like to put the created files into some other directory. I feel that ftp will come into play here but don’t exactly know how. Could you please guide me a little.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T21:08:49+00:00Added an answer on June 15, 2026 at 9:08 pm

    What you will want is to use the Response.TransmitFile method in your backend code rather than javascript.

     Dim FileLocation As String = "C:/File.csv"
                Response.ContentType = "application/csv"
                Response.AppendHeader("Content-Disposition", "attachment;filename=" + FileLocation )
                Response.TransmitFile(FileLocation )
                Response.End()
    

    So once you’ve created your file simply use that code, and you will automatically (it will ask them if they want to obviously) start a file download of that file on the clients computer.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an ASP.NET web application and I have some code that I want
I have a asp.net web application and I'm using cache (HttpRuntime.Cache) to save some
I have a ASP.NET Web Forms application and I'm using some dynamic controls in
We have a Web application (ASP.NET) which displays in some page links to miscellaneous
I have a web application on ASP.NET (C#) that has some precompiled components. I've
I have an asp.net web application written in C# using a SQL Server 2008
I have an asp.net web application using the ReportViewer2008-SP1 controls to display some reports
I will create an ASP.NET Web Application like this; Users can login their own
I have a ASP.NET web application running on an IIS6 server. The application is
I have an ASP.NET MVC Web Application that interacts with a SQL Server 2008

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.