the best way for you , is using javascript for its timer, or use AJAX that you could retrieve your data and also refresh the page.
Main Topics
Browse All TopicsHi,
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?
Cheers,
Brent.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: MogalManicPosted on 2007-04-11 at 04:27:27ID: 18888692
Firstoff, a server cannot refresh a browser. The HTTP protocol is a disconnected client. The client only connects to the server. There is no way for the server to connect to the client.
utorials/h tml/autore fresh.php) after timeout
There are three way's that I see on doing this:
1) Have a "refresh" button when the user clicks button, then refresh the page
2) Setup a refresh timeout. Either through javascript or html
(http://www.hscripts.com/t
expires, automatically refresh the page
3) Use AJAX to populate page results, periodically "polling" for changes and refreshing
when results change.
The above options are in order of complexity and improved customer experience. The 1st two options, will refresh the whole page, but are easier to implement. Using AJAX would be the best way but might be difficult to implement.