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.
The simplest form of navigation is through the use of
Buttons, LinkButtons, and
Hyperlinks. All three will take the user to a different page.
Hyperlinks look the same, while buttons look
different (see Figure 6-15).
Under the covers, however,
Buttons have much more in common, while
Hyperlinks are very different.
Let's clarify. When you click a
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
LinkButton (which looks like a
Hyperlink) or a
Button (which looks like a button), however, the page
is posted back, and there ...