Chapter 11: Linking to Pages and Files


Overview

So far in this book, we've only really looked at single pages and responses to post-backs. As you know from browsing the web, one of the main features that it offers over traditional documents is the ability to link from one document to another using a hyperlink. Without hyperlinks, navigating around a website from one page to another would be very difficult. It would stop certain sites, such as search engines from being as useful as they are. For instance, browsing from a results page on a site such as Google to the results of a query would become a painful task – involving manually copying and pasting links at best.

In this chapter, we'll learn how to make use of hyperlinks that "glue" pages together in our own applications. We will:

  • Learn how hyperlinks are formed and used for joining static pages to each other

  • Examine how we can link to other types of files than just web pages, and how the requests for these linked files are dealt with

  • Look at how links can not only be used to take us from one page to another, but can also pass data around between pages

  • See how we can use hyperlinks for other functions, such as sending e-mails and running code within browsers

  • Learn how to reuse client-side resources that we've written by linking to external documents from within a web-page




Beginning Dynamic Websites with ASP. NET Web Matrix
Beginning Dynamic Websites: with ASP.NET Web Matrix (Programmer to Programmer)
ISBN: 0764543741
EAN: 2147483647
Year: 2003
Pages: 141

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net