Let me show an example of how to use the breadcrumb button (BCB). This example involves a four step wizard. Depending on your answer to the question you will be taken to a different view (panel). The breadcrumbbutton tracks your path, allowing you to go back at any time. This is an example only so please be forgiving of the repeated code.
The lines of code dealing with the BCB are the AddCrumb and RemoveToCrumb. The AddCrumb will add some text and a command string. The text is displayed for the end user to know what step they are/were on. The command part is for the developer. They can use that string argument to tell them what to show if a user clicks on that breadcrumb.
The RemoveToCrumb is a little trickier. It is tricky because you are tempted to pass the argument e.Index to remove. e.Index is the EventArg passed into the BCB_Click event. Index is the crumb that was clicked on. If the developer removes e.Index it will remove the breadcrumb the user is on. Remember, breadcrumbs are displayed the first time as text and then all other times as links. If you remove e.Index the whole crumb disappears. So we add 1 to the Index to remove all crumbs before this one. Because this crumb is the last in the list it will be displayed as text. You could easily modify the source code to do this "+1" for you automatically.
Here is the test page. Below is the code.
<%@ Register TagPrefix="cc1" Namespace="AdvancedControls" Assembly="AdvancedControls" %>
<%@ Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="true" %>
BreadCrumbButton Test