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

  • Home
  • SEARCH
  • 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 8250325
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T23:51:11+00:00 2026-06-07T23:51:11+00:00

I have a web page using C# where I want users to be able

  • 0

I have a web page using C# where I want users to be able to click a link (or a linkbutton or a button, I’m not fussy) and have the “Save As” dialog window appear so they can download the file. The file itself is located on another server so I have to use the absolute path (i:\division\department\publicfiles\filename.pot). Does anyone know how to do that?

I looked up the question here and some people suggested webClient.DownloadFile. Except I can’t use that because it requires that you already know where the user wants the file to be downloaded to on their computer. Basically what I’m looking for is what happens when you right click on a link and select “save as”, but done when you left click on a link.

Thank you

  • 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-07T23:51:12+00:00Added an answer on June 7, 2026 at 11:51 pm

    “The file itself is located on another server” to me sounds like it might not be published to the web and thus doesn’t have a URL. Therefore a simple anchor tag will not work in this case. I think you’re looking for Response.TransmitFile().

    When they click on the link, you need to send the file and explicitly set the content type and content-disposition header. Setting the content-disposition header to attachment will pop up the save as dialog. Like (untested):

    Response.ContentType = "application/x-pot";    
    Response.AppendHeader("Content-Disposition","attachment; filename=filename.pot");    
    Response.TransmitFile(@"i:\division\department\publicfiles\filename.pot");    
    Response.End();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a web page which I want people to be able to upload
I have a png graphic that is put in the web page using raphael
new on rails and using windows for now,, i have web page that user
I have a web page, that redirects to the desired destination url using: <meta
I'm using Windows Media Player in a web page. I have version 11 installed
Today we have a windows application that, using an OCX, creates a web page
I have this web application using Spring Web Flow framework. In my main page
I have a page based web method which works fine, using [WebMethod], i.e [WebMethod]
I'm using Spring Web Flow (v. 1.0.5) and I have a JSP page that
I have an ASP.NET website. I want users who are not logged in to

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.