Stock Query

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.

Figure 16-15. Stock query.

To run this sample you should create a Web application for the Stock folder.

We modified the ...

Get Programming PERL in the .NET Environment now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.