Click here to Skip to main content
15,891,828 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How to implement two way communication between JavaScript and C#. I know that this can be achieved with WebBrowser Control in Desktop Applications. But it seems to be not working for Mobile apps. Is there any other solution for this?
Posted
Comments
Sergey Alexandrovich Kryukov 15-Feb-12 14:36pm    
"Not working" is not informative. What is not working? Any code sample?
--SA
AUDissa 16-Feb-12 6:02am    
http://www.codeproject.com/Tips/130267/Call-a-C-Method-From-JavaScript-Hosted-in-a-WebBro

This article has a solution but the ObjectForScripting property of the WebBrowser control is not available for device applications. ObjectForScripting is the property used to connect a C# class with the html dislayed in the web browser control.
Michael dg 16-Feb-12 7:05am    
what do you mean by C#? C# is in tablet application, web server, or web service?
AUDissa 16-Feb-12 7:09am    
C# is in a application on the device, I want to load an HTML file and invoke methods from the C# app using JavaScript.

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