Click here to Skip to main content
15,889,838 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello,

Could someone please explain me and give me some examples of how I can achieve this :

There is an HTML website on the hosting server. My C# application has Chromium implemented inside. Is it possible to call my C# functions from HTML website if it is opened through chromium via link on my application?

What I have tried:

Tried searching for some examples but I all I could find is if HTML code is implemented inside C# application.
Posted
Comments
Afzaal Ahmad Zeeshan 23-Jun-17 12:17pm    
No, instead what you would need to do would be to actually execute JavaScript calls for specific URI scheme (such as, "myprotocol:"), then, you would handle such navigation events from your application in order to filter them out.
FlatlanD_ 25-Jun-17 11:09am    
Could you possibly give some kind of an example?

1 solution

Use Web service

here is an example Calling Web Service in HTML Page[^]
 
Share this answer
 
Comments
FlatlanD_ 25-Jun-17 11:07am    
But I need to add my HTML code inside C# project. I don't want to do that.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900