Skip to Content
Beginning ASP.NET 3.5: In C# and VB
book

Beginning ASP.NET 3.5: In C# and VB

by Imar Spaanjaars
March 2008
Intermediate to advanced content levelIntermediate to advanced
766 pages
21h 15m
English
Wrox
Content preview from Beginning ASP.NET 3.5: In C# and VB

A.7. Chapter 7

A.7.1.

A.7.1.1.
A.7.1.1.1. Exercise 1 solution

To change the items of the Menu control, two main groups of style properties are available. The properties in the first group all start with Static and refer to the main menu items that are shown when the page first loads. The StaticMenuStyle applies to the entire menu, while StaticMenuItemStyle, StaticHoverStyle, and StaticSelectedStyle are used to change the appearance of the actual menu items in various states (normal, when moused over, and when they are the active menu item).

For the subitems, the same style properties are available, but they all start with Dynamic instead of Static.

A.7.1.1.2. Exercise 2 solution

To redirect a user to another page programmatically, you can use Response.Redirect and Server.Transfer. The first option sends a redirect instruction to the browser and is thus considered a client-side redirect. Server.Transfer, on the other hand, takes place at the server, allowing you to serve a different page without affecting the user's address bar.

A.7.1.1.3. Exercise 3 solution

To display a TreeView that doesn't have the ability to expand or collapse nodes, you need to set the ShowExpandCollapse property of the TreeView to False.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Beginning ASP.NET 4: in C# and VB

Beginning ASP.NET 4: in C# and VB

Imar Spaanjaars
Professional ASP.NET 3.5 SP1 Edition: In C# and VB

Professional ASP.NET 3.5 SP1 Edition: In C# and VB

Bill Evjen, Scott Hanselman, Devin Rader

Publisher Resources

ISBN: 9780470187593Purchase book