473,394 Members | 1,714 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Links to files

Hi all

I'm building a search page for documents and files on my server machine. The
search results will be displayed in the form of links on a page.
How can I make the user's computer open the appropriate application, whenever
a use clicks on a link to access the file? For example, the link points to a .
doc file, how can I make word open on the client machine and display the file?
Thanks
--
Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/For...p-net/200511/1
Nov 19 '05 #1
2 1076
Hi Rey,

This is something that will happen automatically. If you point to a DOC
file, then in general cases, the browser will display the DOC file itself
with the Word Plugins it has. If they don't have the plugin, then the file
gets downloaded and opened automatically. Same for PDFs, XLS, and any other
file extension you can think of.

If this wasn't what you were asking, please clarify.

-Altaf
--------------------------------------------------------------------------------
All that glitters has a high refractive index.
www.mendhak.com
"Reymond C via DotNetMonster.com" <u7030@uwe> wrote in message
news:56da2c403df62@uwe...
Hi all

I'm building a search page for documents and files on my server machine.
The
search results will be displayed in the form of links on a page.
How can I make the user's computer open the appropriate application,
whenever
a use clicks on a link to access the file? For example, the link points to
a .
doc file, how can I make word open on the client machine and display the
file?
Thanks
--
Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/For...p-net/200511/1

Nov 19 '05 #2
Thanks Altaf. This is exactly what I was asking. Thanks for your help.

S.M. Altaf [MVP] wrote:
Hi Rey,

This is something that will happen automatically. If you point to a DOC
file, then in general cases, the browser will display the DOC file itself
with the Word Plugins it has. If they don't have the plugin, then the file
gets downloaded and opened automatically. Same for PDFs, XLS, and any other
file extension you can think of.

If this wasn't what you were asking, please clarify.

-Altaf

--------------------------------------------------------------------------------
All that glitters has a high refractive index.
www.mendhak.com
Hi all

[quoted text clipped - 9 lines]

Thanks

--
Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/For...p-net/200511/1
Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: mike | last post by:
Ok, Here's what I want to do. I want to be able to display all the files in a directory as links on webpage so that the user can just click the link to download the appropriate file. I can make...
0
by: Raymond Hettinger | last post by:
QOTW: "All that rigid type safety and data hiding is like wearing army boots on the beach: nothing can bite your toes, but golly don't it feel good to just toss 'em and run barefoot." -- David...
1
by: Danny | last post by:
I am trying to crawl my site to get a list of links. I am using the regular expressions to get the href tags from the pages and reading the links using xmlhttp module. is there an efficient way...
1
by: Chris Hemingway | last post by:
Hi I have an html file which links to word docs amongst other things; but these files and their location may change periodically. How can I adapt my html so that if the files do not exist, the...
3
by: Ernesto Morin | last post by:
Not sure if somebody can help me here. Our company develops a web based system that lets client have interaction with it. One of the things that we have is the ability for a user to create links...
2
by: BT | last post by:
I inherited a website to update and maintain and it appears that many extra files have accumulated on the server over the last few years. I would like to clean them up, but the idea of manually...
3
by: Peter K | last post by:
Hi I need to make a list of "download file links" on a webpage. All the data is dynamic - it depends on the user's actions how many files, and which files, I need to present in the list. The...
6
by: Jetus | last post by:
Is there a good place to look to see where I can find some code that will help me to save webpage's links to the local drive, after I have used urllib2 to retrieve the page? Many times I have to...
12
by: Jeff Gaines | last post by:
I am a hobbyist programmer, using C# and VS2008 and writing desktop apps. I am trying hard to take a modular approach to avoid re-inventing the wheel but I'm finding it a bit frustrating. For...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.