Modifications to the ProductDetails.aspx Page

Two simple modifications were made to the product details section of the MyGolfGear.NET site. We made a change to the ProductDetails.aspx page and to the ProductDetails.aspx.cs code behind class.

We added a HyperLink Web server control to the ProductDetails.aspx page. The tag for the new link looks like this:

<asp:HyperLink id="Email" runat="server" fontsize=2 forecolor=green/>

This tag takes the obligatory id and runat attributes as well as two others. To allow for a customized look, we also specified font size and forecolor.

To give this link functionality, we added a couple of new lines of code to the ProductDetails.aspx.cs code behind class. Listing 12.1 shows this new code.

Listing 12.1.

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.