If I want to implement something similar to a stockticker, should I use a timer, or is there a way to update an element inside a webpage(like a gridview), when there is a changeon the server?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Description
I strongly suggest to use SignalR. The benefit is that you dont think about browser compatibilty. It uses polling, long polling or websockets depending on what the browser supports. It allows to push changes to the client, is opensource and easy to set up. Check out SignalR Stock Ticker Sample
You can instal it using nuget.
More Information