Posted on 2014-03-06
I'm trying to setup a breadcrumb in an asp.net vb website in vs2010. I'm using master pages, aswell as nested master pages...
I'm using the below code for the master page using the web form's page_load, this works fine... even though isn't there a way to use the Page directive's Title tag?
Dim lblBreadCrumbs As Label = CType(Master.FindControl("lblBreadCrumbs"), Label)
lblBreadCrumbs.Text = "Home Page"
This works fine on the webform one level down from the master page with the lblBreadCrumbs label control existing in the masterpage.
However, how do i access this same label control in a nested master page, another level down?
is there a better way of achieving breadcrumbs in a nested master page website?