Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

4. Navigation Controls > The Menu Control - Pg. 119

Chapter 4 2. Switch to Design view and drag a SiteMapPath control from the Navigation section of the toolbar and drop it onto the text marker that says Space for SiteMapPath Control. Then delete the text marker. 3. Save the file. We've added the SiteMapPath control to the site. To see how it appears on the site, navigate to any page. Notice that the control displays all links that lead up to the site's root channel. What's happening behind the scenes is that the SiteMapProvider has supplied the SiteMapPath control with the parent channels that lead to the current page. Without any extra programming on our part, the two components have worked together to generate the trail. The Menu Control The ubiquitous menu control needs little introduction. Menus provide users with a list of links from which to choose. They are traditionally placed either horizontally at the top of the page, or vertically on the left or right-hand side of the page. If you've built a website, chances are you've attempted to put a menu somewhere on the site either by using ready-to-use widgets or by building one entirely from scratch using a collection of scripts. Either way, a fair amount of code had to be written to get the