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

Navigation

Modern commercial web sites can be surprisingly complex, often consisting of dozens, even hundreds of pages. Users will have a more satisfying experience if you provide navigational hints and menus to help them avoid "getting lost," and to enable them to conveniently find all the features of the site.

The ASP.NET toolset includes a number of controls that facilitate this assistance. There are controls for creating both "bread crumbs" (how did I get to this page?) and site maps (how do I find that other page?).

Most of the time you will want these features to be present on every page, and thus master pages are a great asset. If you change the site map or the control, you only need to update the master and all the other pages are "updated" automatically.

Buttons and HyperLinks

The simplest form of navigation is through the use of Buttons, LinkButtons, and Hyperlinks. All three will take the user to a different page. Superficially, LinkButtons and Hyperlinks look the same, while buttons look different (see Figure 6-15). Under the covers, however, LinkButtons and Buttons have much more in common, while Hyperlinks are very different.

Let's clarify. When you click a Hyperlink, you are taken directly to the new page. The first page does not post back to the server. You are immediately transferred to the new page—do not pass Go, do not collect $200.

With a LinkButton (which looks like a Hyperlink) or a Button (which looks like a button), however, the page is posted back, and there ...

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