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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T16:22:51+00:00 2026-06-16T16:22:51+00:00

I have a Filetable containing many different document types (.doc;.pdf;.xls etc). I am writing

  • 0

I have a Filetable containing many different document types (.doc;.pdf;.xls etc).

I am writing a small web (C# / .net 4) search app. Search works great using fulltext index with filetable to find content.

But I’m struggling to find a way in my app to have the search results as links which can launch the document in question? And just handle the different file types? (Assume client has Word/adobe/excel installed etc)

Grateful for any advice.

  • 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-16T16:22:52+00:00Added an answer on June 16, 2026 at 4:22 pm

    You will need to write a custom page handler to stream the bytes to the client with the proper HTTP headers. You will need to decide whether to support inline viewing (open in the browser – Content-Disposition: inline) versus external viewing using an attachment (e.g. Content-Disposition: attachment).

    Response.AddHeader("Content-Disposition", "attachment; filename=example.pdf");
    

    If you are using ASP.NET MVC – you can leverage the FileResult to streamline this process, but creating your own handler wouldn’t be too much different.

    public FileResult Download()
    {
        byte[] fileBytes = ...; // from FileTable
        string fileName = "example.txt";
        return File(fileBytes, System.Net.Mime.MediaTypeNames.Application.Octet, fileName);
    }
    

    The best approach to handling various MIME types (PDF, DOC, XLS) is to statically define the supported file types or dynamically read IIS and assign the appropriate Content-Type HTTP header.

    Response.ContentType = "application/pdf";
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am writing a web script for a small online documents management company that
HI I have a table which holds files and their types such as CREATE
I have an input PDF file (usually, but not always generated by pdfTeX), which
I have a button within my web page to inserts a few values into
I am writing a repository program in java, I have a User table that
I have constructed an ASP.NET user control Box.ascx wtih the following code. <div id=divContent
We have a library of PDF forms that contain fillable fields and that can
I have a web application which is giving me the following exception: InnerException {Cannot
I have a set of PDF files that were created in Acrobat Professional with
I was wondering if it is bad practice to have a file_table { id,

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.