Whats the best way to implement a streaming quotes page?
I have a webservice that gives me the live stock quotes. I need to hit the webservice and update the page every 10 seconds or so.
what is the best way to implement this using .NET and AJAX?
I am looking for tips in the following lines:
- How to implement the end ASPX page to refresh the content on a timeout event?
- Should i just implement the front end using custom html calling the aspx page using xml开发者_如何转开发http? sort of old style asp code.
any ideas would be appreciated.
sChar
Sounds like you want something like this Javascript News TickerTape Component. It will pull pages of items (stock quotes in your case) in JSON format and display them in a scrolling container.
If you're using .net 3.5 you can create a web service which returns JSON; if not, have a look at this article.
精彩评论