10. Web Site Navigation TechniquesTwo common approaches for linking Web pages together were part of the original specifications for HTML. You can use a hyperlink, implemented as a <a> element, or a <form> section that posts its contents to another page. It became common in recent years, with the rise in interactive scripting techniques, to use a <form> section to post the values back to the same pagerather than a separate one that handles the posted values. This became known as the postback approach, which was discussed in previous chapters when you looked at the design of Web Forms in ASP.NET and the use of server controls. As you saw, ASP.NET not only supports a postback architecture; it actually requires it for many of the features, such as maintaining control values, implementing an event-driven architecture, and supporting many of the interactive server controls. However, Web sites and Web applications rarely consist of just one page, and so other approaches to linking pages together are obviously required as well. This chapter deals with Web site navigation topics and demonstrates many of the ways that you can link pages together using a range of server controls and non-server controlssome of which you have already seen in action in previous chapters. In fact, it is surprising when you come to look at a list of the approaches that are available to see how many different ways of implementing navigation ASP.NET supports. The topics you will see in this chapter are the following:
The chapter begins with a brief overview of the use of hyperlinks in ASP.NET. |