Pet Shop 4.0 – BreadCrumb

BreadCrumb is very simple part in Pet Shop 4.0 source code.
“BreadCrumbControl.ascx” is main file and it is implemented in Master Template.

add following code into “class BreadCrumbControl” in “Page_Load” function.

1
2
3
4
5
     HtmlAnchor testAnchor = new HtmlAnchor();
     testAnchor.InnerText = "Test";
     testAnchor.HRef = "~/Default.aspx";
     plhControl.Controls.Add(testAnchor);
     plhControl.Controls.Add(GetDivider());

check screen dump.
The final result will be Home > Test > Birds
petshop4.0_breadcrumb

This entry was posted in PetShop4.0. Bookmark the permalink.