Text.Trim());
}
You can view the company information and Quote section on the top of the page for
a specific stock ticker such as MSFT for Microsoft Corporation (see Figure 10-7).
Figure 10-7. The company name and current price information
CHAPTER 10 ?– BUILDING A SAMPLE APPLICATION USING ASP.NET AJAX 235
With the brief quote information on top of the page, we need to create the more
extended quote information in the first tab. This extended price information includes the
bid and ask prices. These are, respectively, the current price that is being bid on the stock
by prospective buyers and the one that is being asked for by sellers. When you make a
purchase at the current market price, it is usually between these two values, provided you
are buying a large amount of shares in the stock. It also provides the opening price for the
day, as well as the year??™s (52 weeks) high and low.
Now let??™s take a look at the code that implements this. First, create a new TabPanel
control with one ASP.NET Label control in the
section. The following
code snippet shows the markup for that section:
Basic Quote
As you can imagine, much of the implementation logic is going to be in content
generation for the lblBasicQuote Label control because that is where all the quote information
will reside.
Pages:
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329