HomeCommunityControl GalleryNavigation ControlsBread Crumb Trail

Bread Crumb Trail



Submit a Review

1,911 Downloads

22,678 Views


Description

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.

Syntax Example

<script runat="server"> public void Page_Load(object sender, EventArgs e) { bct1.Crumbs.Add("~/orderedListBox.aspx", "Ordered ListBox"); bct1.Crumbs.Add("~/multitext.aspx", "Multi-Text"); bct1.Crumbs.Add("~/maskedtextbox.aspx", "Masked TextBox"); } </script> <ew:BreadCrumbTrail id="bct1" runat="server" PageName="Bread Crumb Trail" TrackCrumbs="False"/>

Reviews

Submit a review