473,756 Members | 3,686 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.c om
http://www.dotnetmonster.com/Uwe/For...p-net/200511/1
Nov 19 '05 #1
2 1100
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.c om" <u7030@uwe> wrote in message
news:56da2c403d f62@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.c om
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.c om
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
1705
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 this work with the following bit of code. The files all have basically the same format: backup-<date created>.sql.tar What the following code does not do is to show the files in alphabetical or chronological order. I think I could read the...
0
1340
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 Pinn QOTW: "... this is Usenet. No matter what you write, somebody is going to interpret it as a proposal to cook and eat babies." -- Grant Edwards QOTW: "I assume you mean instance.getthing() because writing self.getthing() has unclear...
1
1737
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 to loop through the links? If you start with the home page, how do you do it? How do yo ukeep track of the pages you have been to and which to do next. I am not sure how to go about tihs.
1
3331
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 links are hidden i.e. how do I hide broken links? Chris
3
1343
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 to local files on there machine. They then can click these links and launch the document in a iFrame. Anyway these links no longer work. Did something change in IE security settings? Thanks, Ernie
2
1623
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 going thru all of the pages, listing the links and then comparing the list to the file directory seems very time consuming. Can anyone point me to a tool or method to streamline this process? Even something that just lists the links included in...
3
2767
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 files are identified by an id in a database. How do I do this? I was thinking I could somehow make a list of <a href...> tags which could call a method in my c# code-behind. Is this possible? Or is there a better way?
6
1725
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 view these pages when I do not have access to the internet.
12
1510
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 instance I have a ListViewEx class (based on a ListView) which has in-place editing and a sorter based on column content. It uses custom column headers and custom ListViewItems. In turn the ListViewEx may have a further class base on it and so on. ...
0
9456
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9713
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8713
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7248
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5142
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5304
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3805
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3358
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2666
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.