||August 15, 2003
||July 25, 2007
This control allows a developer to place a history trail of pages visited by the user. It is a very simplistic control to use. There are three different methods one can use this control with, all of which require Session state to be enabled.
Method 1: Do nothing but place the control on several different pages. The control will automatically track which pages the user has visited and provided a trail back to them.
Method 2: Physically adding crumbs to the collection to build a trail of pages to be displayed.
Method 3: Data bind the control to a DataSet, View, Table, or Array to dynamically generate the trail of pages being displayed.
These various methods can be used in conjunction with one another, and links, crumb separator, and text are all stylable.
public void Page_Load(object sender, EventArgs e)
bct1.Crumbs.Add("~/orderedListBox.aspx", "Ordered ListBox");
bct1.Crumbs.Add("~/maskedtextbox.aspx", "Masked TextBox");
<ew:BreadCrumbTrail id="bct1" runat="server" PageName="Bread Crumb Trail" TrackCrumbs="False"/>
Submit a review