views:

32

answers:

1

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:

  1. How to implement the end ASPX page to refresh the content on a timeout event?
  2. Should i just implement the front end using custom html calling the aspx page using xmlhttp? sort of old style asp code.

any ideas would be appreciated.

sChar

A: 

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.

Colin Pickard