7.6. Exercises

  1. The Menu control exposes a number of style properties that allow you to change items in the menu. Which properties do you need to change if you want to influence the way the main and the submenu items are shown on screen?

  2. What options do you have to redirect a user to another page programmatically? What's the difference between the two?

  3. The TreeView controls can be used in two different ways: either as a list with items and subitems that can be collapsed and expanded by clicking them, or as a static list showing all the items with no way to collapse or expand. What property do you need to set on the control to prevent users from expanding or collapsing items in the tree?

Get Beginning ASP.NET 3.5: In C# and VB now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.