How to interact windows forms app to asp.net c# web
-
Hi All, I have an ASP.Net Web Form Application and I have a button called "Open Cash Drawer" in the form, and I want when click the button call a windows form application on the client PC to open the cash drawer. I do some search on the Internet and the result is to use "Register URI Scheme" to interact web and windows application together . Please let me know how to do that, and give me any sample code if possible. Thanks Alot
-
Hi All, I have an ASP.Net Web Form Application and I have a button called "Open Cash Drawer" in the form, and I want when click the button call a windows form application on the client PC to open the cash drawer. I do some search on the Internet and the result is to use "Register URI Scheme" to interact web and windows application together . Please let me know how to do that, and give me any sample code if possible. Thanks Alot
True, that is the only possible solution here. Also, apart from that, you also need to make sure that your desktop application is also available on the client device, installed and listening for that URL or URI, or the protocol — you can check how Torrent clients, Skype client etc work. They use the same methods to listen to a button click, and then the browser itself starts the default application for that URL (uTorrent for the magnet links, Skype for call links, your email client for mailto links etc). This article covers everything you need to do in order to register that URI in the registry, [Registering an Application to a URI Scheme (Windows)](https://msdn.microsoft.com/en-us/library/aa767914(v=vs.85).aspx). Rest of the stuff is not at all complex, the only thing is to have the client install your desktop application, if they trust you, they will, if they do not then you need to earn some trust.
The shit I complain about It's like there ain't a cloud in the sky and it's raining out - Eminem ~! Firewall !~