BreadCrumbs Control

Feedback on this topic

Adding the BreadCrumbs Control to a StoreFront Common Control

This sample shows how to add the BreadCrumbs Control to TopSubBanner.ascx. Similar steps apply to any StoreFront common control.

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 TopSubBanner.ascx 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 control where you would like the BreadCrumbs Control to appear and enter the tag shown below. This will place the BreadCrumbs Control immediately before the page name label. This arrangement looks best if the page name label is not visible. This can be accomplished by configuring the Top Bar (a.k.a. TopSubBanner) to display the image "images/clear.gif".
    <uc1:BreadCrumbs id=BreadCrumbs1 runat="server" />
    <asp:Label id="Label" runat="server" CssClass="Plain" Visible="false">PageName</asp:Label>
  3. Save the changes and close the file. The next time you load any StoreFront 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.