O'Reilly logo

Learning ASP.NET 2.0 with AJAX by Dan Hurwitz, Jesse Liberty, Brian MacDonald

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 6: Style Sheets, Master Pages, and Navigation

Answers to Quiz Questions

  1. The best way to apply styles on your page is to use an external style sheet. You can use inline or document-level styles, but these are error-prone and difficult to maintain.

  2. The style for the specific paragraph applies. Style rules are always applied from least to most specific.

  3. You use the @import command to apply a style sheet to your page, and it must be placed in the <head> element. If you place it anywhere else, the style sheet will be ignored.

  4. A master page acts as a shell inside of which the content of your individual pages is displayed. This allows you to have a consistent look to all the pages on your site.

  5. There's no limit to the number of nested master pages you can apply to a single content page, but if you use too many, your content will be difficult to read.

  6. The child content page needs a reference to the class of the master page, contained in a @MasterType directive, immediately following the @Pagedirective for the child page.

  7. You can use the Response.Redirect method.

  8. You need to add a site map file, which is an XML file. You can use Website → Add New Item to add a new site map with an automatically generated skeleton, but you need to add the content of the XML file yourself.

  9. You place a SiteMapDataSource control on the page to enable the navigation controls. In the case of a TreeView or Menu control, you use the Smart Tag to point the control to the SiteMapDataSource.

  10. You don't have to do anything. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required