September 2002
Intermediate to advanced
496 pages
10h
English
To demonstrate additional techniques of data binding we present the Stock\Stock.aspx page for showing the read-only query of items in stock. We use the Stock component from the previous chapter. This component implements the IStock interface and works against the Stock table in our database. We reference the relevant assemblies in the Stock.aspx file:
<%@ Assembly Name="StockItem" %> <%@ Assembly Name="IStock" %> <%@ Assembly Name="Stock" %>
Please refer to the readme.txt file in the Stock sample folder for the instructions on building the assemblies. Figure 16-15 shows the results of running the stock query.
To run this sample you should create a Web application for the Stock folder.
We modified the ...