BreadCrumbs Control

Feedback on this topic

Adding the BreadCrumbs Control to a StoreFront Page

This sample shows how to add the BreadCrumbs Control to the StoreFront Detail.aspx page. The sample steps apply to any StoreFront page.

Note: It is good practice to make a backup copy of a file prior to making a change so that you can easily restore a working version.

  1. Open Detail.aspx in an editor and add the following line to the top of the file:
    <%@ Register TagPrefix="uc1" TagName="BreadCrumbs" Src="Controls/BreadCrumbs.ascx" %>
  2. Now locate the position in the page where you would like the BreadCrumbs Control to appear and enter the following tag. The sample shown below will place the tag immediately above the product details.
    <P align=left><uc1:BreadCrumbs id=BreadCrumbs1 runat="server" /></P>
    <uc1:ProductDetail1 id="ProductDetail11" runat="server"></uc1:ProductDetail1>
    <uc1:ProductDetail2 id="ProductDetail21" runat="server" Visible="False"></uc1:ProductDetail2>
  3. Save the changes and close the file. The next time you load a product detail page such as Detail.aspx?id=2, you should see something similar to this:

 

Please see Customizing the Appearance of the BreadCrumbs Control for information about changing the appearance of the BreadCrumbs Control.

 

 


Copyright © 2003, Structured Solutions. All rights reserved.