473,770 Members | 4,718 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Web Browser File Association

With a WinForms app I know how to configure the registry to understand a
specific file association so that it is associated with a given application.

But how does one do this with a web browser?

Say that one creates a new file type called ".abc". If the user clicks on a
".abc" file on a web page, how does one tell both Internet Explorer and
Mozilla Firefox to utilize a specific WinForms app if the user chooses "Open"?

--
Robert W.
Vancouver, BC
www.mwtech.com

Jun 3 '06 #1
2 2303
You are forgetting a very important thing: Web applications cannot
access the registry on the client's computer. Desktop applications can
do that because they are running on the client's computer already and
have access to *all* the resources on the computer. The only way you
can create the associations you want is either:

Option 1
When your user downloads the file, and they try to open it, Windows
brings the unknown file type thing and asks the user to select an
application with which to open the file. Your user then selects the
application they want and clicks on 'always use this application to
open files of this type' or something like that. This is all obviously
totally out of your own control.

Option 2
You can distribute a small desktop application which creates and
registers the file type '.abc'. can even be an ActiveX control on your
web pages. but this is not desirable.

hope this helps

Jun 3 '06 #2
Okay, maybe I didn't ask the right question. The filetype I've constructed
is actually just an XML file with a different file extension. When I load a
sample on my website and let the user click on it, what happens is that the
XML file itself appears like a text file, rather than letting the user Open
or Save it.

How can I change this?

--
Robert W.
Vancouver, BC
www.mwtech.com

"ta****@gmail.c om" wrote:
You are forgetting a very important thing: Web applications cannot
access the registry on the client's computer. Desktop applications can
do that because they are running on the client's computer already and
have access to *all* the resources on the computer. The only way you
can create the associations you want is either:

Option 1
When your user downloads the file, and they try to open it, Windows
brings the unknown file type thing and asks the user to select an
application with which to open the file. Your user then selects the
application they want and clicks on 'always use this application to
open files of this type' or something like that. This is all obviously
totally out of your own control.

Option 2
You can distribute a small desktop application which creates and
registers the file type '.abc'. can even be an ActiveX control on your
web pages. but this is not desirable.

hope this helps

Jun 3 '06 #3

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

Similar topics

1
4435
by: Allen | last post by:
I have installed the Updater Application Block, and then I should Deploy the QuickStarts. " Install the QuickStarts After you install the Updater Application Block, you should install the QuickStart applications by using the Deploy QuickStarts option on the QuickStarts submenu. This creates the Web folders required by the QuickStart samples. You can remove the QuickStarts from your computer by using the Uninstall QuickStarts option on...
6
1766
by: Nak | last post by:
Hi there, I am implementing file association from within my application, association that occurs after installation. Anyway, I remember a while back seeing a key in the registry that was used to store the previous registered application to an extension, but I can't for the life of me find out what the exact key was called, I *think* it was "Previous" or something like this. Anyway, what it means is that my application could restore the...
28
20666
by: Tim Daneliuk | last post by:
I have a program wherein I want one behavior when a file is set as executable and a different behavior if it is not. Is there a simple way to determine whether a given named file is executable that does not resort to all the lowlevel ugliness of os.stat() AND that is portable across Win32 and *nix? Thanks, ---------------------------------------------------------------------------- Tim Daneliuk tundra@tundraware.com PGP Key: ...
6
2224
by: ernesto.tejeda | last post by:
Hello, I have a couple of questions regarding the loading of .js files for the browser and would like anyone to point me wher to find the answer (or if you know the answer and tell me will do just fine ;) ) - If I have several pages all using 'somejs.js' file this file is shared on disk and is downloaded only once... but how about in memory, is it also shared and just loaded once? -Also, when are the .js files unloaded from memory?
0
9595
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
9432
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10008
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8891
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
7420
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
6682
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3974
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
3578
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2822
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.