I'm not sure if this is possible but I'm having problems finding a solution :(
I have a website written in asp.net (C#) which connects to a C++ COM server for data which will be retrieved and used to update the webpage. Sending data to the COM server works perfectly. Retrieving a response and updating the website is the problem.
I'm not sure how this is done professionally but here are the possibilities I've come up with:
- In the asp.net create a timer that on fire checks if there is new data in the COM server to be retrieved i.e simple values, retrieve the data, and send a refresh to update the page.
- problems - create timer, and issue refresh
- Have a C++ event in the COM server and when triggered by the COM server to state that new data is ready to be retrieved, the asp.net picks up with event, retrieves the data and sends a refresh to update the page.
- problems - accessing an C++ event in the COM server from asp.net, and issue refresh
Is this viable? If not, is there any alternatives?