SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 174 | Next

Robin Pars, Laurence Moroney, and John Grieb

"Foundations of ASP.NET AJAX"

..





By now, you are probably familiar with most of this code. Basically, we are using an
trigger in the main UpdatePanel control and associating it with
the Tick event of the Timer control. To better show the updates taking place, you use an
UpdateProgress control with the text ???Updating??¦??? in its tag. In the
Timer control, you set the interval to 2 seconds (2000 milliseconds) and point the OnTick
event to the Timer1_Tick event handler in the code behind, which will be responsible for
writing the logic to fetch and display the new values for the three indices.
Obviously, the point of this application is to showcase a good scenario for using
ASP.NET AJAX server controls and not to build a practical market data reporting
application. As such, the initial values for the three indices have been hard-coded in the
tags themselves. The initial value for the DJIA is set to 12000, the NASDAQ is set to 2500,
CHAPTER 6 ?–  USING SERVER CONTROLS IN ASP.


Pages:
162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186