The proxy to the Flash-db.com web service is called CompanyInfoService. An instance
of this proxy is first created, called svc. This exposes an object of type CompanyInfoResult,
which is used to store the returned information from the service. The second line creates
an instance of this type, called rslt, into which the results of a doCompanyInfo web method
call are loaded. This web method takes three parameters; the first two are username and
password. The web service is open, so you can put anything in for the username and
password parameters. The third parameter is the ticker for which you are seeking the
company information.
The company name (result.company) is then appended to a string containing text
(Current Price:), which in turn is appended to the last traded price for the stock
(result.lastPrice). You can see this in Figure 10-8.
CHAPTER 10 ?– BUILDING A SAMPLE APPLICATION USING ASP.NET AJAX 237
Figure 10-8. Extended quote information in the first tab pane
Creating the Price History Pane
The price history pane renders the 20-day price history (the closing price for the stock over
the past 20 days) in a simple text table.
Pages:
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332