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 7811825
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T04:18:30+00:00 2026-06-02T04:18:30+00:00

I have a webpage (built using ASP.NET) with a list of text files. I

  • 0

I have a webpage (built using ASP.NET) with a list of text files. I want users to be able to click on a file and have it open using the default text editor.

It is expected that users already have the file in question, I really just have to open it.

EDIT: Only need to support Windows & Firefox & Chrome at the moment.

  • 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-02T04:18:32+00:00Added an answer on June 2, 2026 at 4:18 am

    The best I think you can do is force the files as downloads using the Response.ContentType with something like this:

    Response.ContentType = "text/plain";
    Response.AppendHeader("content-disposition", "attachment; filename=" + fileName);
    

    If you pipe the contents of the file directly to the Response stream (thus forcing the download), it would prompt the user to save or open the file in a text editor. I think this is the closest you’re going to get without inventing your own protocol.

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

Sidebar

Related Questions

I have a webpage built with a dropdown that has a list of books.
I have a ASP.Net (.net 3.5/c#) and I want to display a version number
I have built a rich Text Editor for Flex 4 using the instruction in
I have an asp.net web page with a simple search text box that returns
I have an array built from the URL of a webpage. If an item
We have a system built on seam/richfaces. There's this webpage where the tables are
I have a webpage that is transferring A stylesheet as a text/plain MIME type.
I have a webpage where there are few text fields to be filled up
I have a webpage that accepts HTML-input from users. The input is converted into
I have an Asp.Net web page, having the common Asp.Net form. The outer border

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.