Adding the ProductReviews User Control to the Product Details Page

User controls cannot be displayed without a container such as an ASP.NET page. For this reason, we modified the ProductDetails.aspx page to use the product review user control. Listing 10.6 shows the relevant portion of this page.

Listing 10.6. The ProductDetails.aspx Page
...
<%@ Register TagPrefix="MyGolfGear" TagName="ProductReview" Src="../UserControls
/ProductReview.ascx" %>
...
<MyGolfGear:ProductReview id=ProductReview runat="server" />
...

Note

You can find the complete listing for the ProductDetails.aspx file online.

Because the bulk of the product details page was ...

Get Building e-Commerce Sites with the .NET Framework 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.