I have a .NET application running on windows. I want clicking on some page element (button link flash app etc) to launch my app with some special parameters. (It should run not just in IE but on WebKit based windows browsers too) During App install we suppose that user is Admin and is running Vista or Windows 7 or Later.
So my question is - Where to get examples of such interaction (WITH source of course)?
So how to make WebKit based Browser or IE call your .Net application?
Register a custom URL Protocol Handler. Then you can specify the url using links, etc:
<a href="myapp://doSomething/>Click to run my app!</a>
If you have Adobe Reader installed, the acrobat://
protocol is registered. Unfortunately, SO doesn't allow links using custom protocols, so I can't add an example here I'm afraid.
You can't have a Webkit-based browser to open an application directly. Your best hope (and what Apple does to open the iTunes Store) would be to have your .NET application register for opening certain types of URLs, use a link that points to an URL of this type.
For instance, if your application can open myapp://
URLs, you could use the following HTTP header:
Location: myapp://mysettings
or a more conventional link:
<a href="myapp://mysettings">Foo</a>
And then the browser will take care to open an application that can handle the myapp://
URL scheme (in this case, your application).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With