Workshop


Quiz

1.

What name must you give the site map file?

2.

True or False: The site map file can appear in any folder in the web project.

3.

What attributes can be found in the <siteMapNode> element?

4.

What control must be added to the page to have the TreeView or Menu controls display the site's structure?

5.

What is the difference between the static and dynamic portions of the Menu control?

Answers

1.

Web.sitemap.

2.

False. The site map file must appear in the web project's root directory.

3.

The <siteMapNode> can contain the url, title, and description attributes.

4.

The SiteMapDataSource control.

5.

The static portion of a Menu control is always shown in the user's browser. The dynamic portion is shown only when the user interacts with the menu in some manner.

Exercises

  1. Alter the site map created during this hour so that a new section titled Books is created. When specifying the Books section in the site map file, do not provide a value for the url attribute.

    Move the Business, Fiction, and Technology sections (and their subsections) to reside underneath this new Books section. Additionally, move the On Sale section here as well. Figure 19.14 shows the new site structure hierarchy.

    Figure 19.14. The Books section has been added.

  2. In this hour we looked at only a handful of the Menu control's appearance-related properties. In particular, we didn't examine any of the properties in the Styles section of the Properties window.

    Add a Menu control (and, of course, a SiteMapDataSource control) to the Legal.aspx page and practice with these Styles properties, noting the effects in the Design view and when visiting the page through a browser. Finally, be sure to try out the level-related style propertiesLevelMenuItemStyles, LevelSelectedStyles, and LevelSubMenuStyles. These level-related style properties are similar to the LevelStyles property of the TreeView control.




Sams Teach Yourself ASP. NET 2.0 in 24 Hours, Complete Starter Kit
Sams Teach Yourself ASP.NET 2.0 in 24 Hours, Complete Starter Kit
ISBN: 0672327384
EAN: 2147483647
Year: 2004
Pages: 233

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net