The IBuySpy Storefront

The IBuySpy case studies represent one of the best ways to learn ASP.NET programming. However, they aren't just for Web developers their careful use of tiers, database components, and stored procedure code reinforces many of the points I've stressed in this book.

IBuySpy is a fictitious e-commerce company complete with a product catalog, shopping basket, user-comment service, and account information. The IBuySpy site uses output caching to reduce the load on the database by storing rendered HTML for instantaneous reuse, it uses data binding to reduce coding, and it uses ASP.NET user controls to ensure that the site's user interface is modular and reusable. For the distributed application programmer, the most interesting aspect of the IBuySpy store is its use of database classes, which closely follows the service provider model introduced at the beginning of this book. Every database interaction passes through a dedicated table class, which then executes a corresponding stored procedure. The ASP.NET page code contains no dynamic SQL statements or direct database connections. The IBuySpy store also provides XML Web services that allow access to the IBuySpy catalog, but there is no corresponding client application. You can develop your own or test these XML Web services using the Microsoft Internet Explorer test page functionality.

You can download the IBuySpy store code in Visual Basic .NET or C# versions from http://www.ibuyspy.com. A setup program creates the required database (provided you have access to Microsoft SQL Server) and virtual directory. You also can run the IBuySpy store online at http://www.ibuyspystore.com, as shown in Figure 19-1. In addition, you can browse the well-commented code online at http://www.ibuyspystore.com/vbdocs/docs/docs.htm.

Figure 19-1. The IBuySpy storefront

graphics/f19dp01.jpg

Does Microsoft Favor ASP.NET?

All Microsoft distributed case studies use ASP.NET because ASP.NET offers the easiest way to implement a distributed application and the shortest path to optimum performance thanks to features such as output caching. ASP.NET also guarantees cross-platform support. Microsoft is facing stiff competition from other server-side technologies such as J2EE, and this ability to support any client with an Internet browser is a key marketing priority.

However, Microsoft has also repeatedly declared that smart Windows Forms are a core part of its strategy and that the company expects to see ongoing development for distributed applications based in the Windows world. In fact, part of the goal of Windows services is to bring Internet functionality into a desktop world. However, Microsoft doesn't provide any complete case studies that use Windows Forms.



Microsoft. NET Distributed Applications(c) Integrating XML Web Services and. NET Remoting
MicrosoftВ® .NET Distributed Applications: Integrating XML Web Services and .NET Remoting (Pro-Developer)
ISBN: 0735619336
EAN: 2147483647
Year: 2005
Pages: 174

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net