开发者

ASP.NET VB Changes in Stocks Prices Prompt

开发者 https://www.devze.com 2023-03-28 07:21 出处:网络
I\'d like to ask about the way in ASP.NET VB to detect the changes in stocks prices, if the price inceased, the containing cell inside the grid blinks in green, decreased will blinks in red?

I'd like to ask about the way in ASP.NET VB to detect the changes in stocks prices, if the price inceased, the containing cell inside the grid blinks in green, decreased will blinks in red?

ex: if the price now 10.00$开发者_StackOverflow社区 and increased to 10.01$ the containing cell will blink with 1 second in green..!! Many thanks guys in advance.


Ideally, you would want to have a JSON/XML feed that provides the necessary stock symbols, the current trading price, and the time of the last update which is then loaded via AJAX in the background every 'X' seconds. You would capture the previous price and the new price and compare the two.

jQuery/Javascript provides a lot of transitions to help improve the UI on an app such as you described and also has a pretty easy-to-use implementaton of AJAX, via $.ajax().

0

精彩评论

暂无评论...
验证码 换一张
取 消