What you will learn in this chapter:
The wrox.com code downloads for this chapter are found at www.wrox.com/go/beginningaspnetforvisualstudio on the Download Code tab. The code is in the chapter 11 download and individually named according to the names throughout the chapter.
There was a lot of discussion in Chapter 4, “Programming in C# and VB.NET,” about reusing the same code in multiple areas as opposed to rewriting the code multiple times. This is a useful concept not only when approaching your code design, but also when approaching your page design. You have seen how reuse is provided through the use of master pages and layout pages; now you will learn other ways to provide reusable sections in a web application.
A typical example of this could be something like a login window. While you may want the same functionality on every page, you might prefer that functionality to appear in different places on the page, based on the visitor's current location. Because they may be on different parts of the page, it's not possible to put this functionality into the ...