Chapter 11. Creating and Using User Controls

IN THIS CHAPTER

What Are User Controls?

Creating a User Control

Adding User Controls to a Page

Converting a Page to a User Control

Checkpoint

What Are User Controls?

As you develop Web forms for a web application, it’s likely that you’ll identify some parts of a page that can be reused in several other pages. In Chapter 14 of this book, you will be creating a login interface for some membership pages. Although most web applications have a login page that contains a login interface, that same login interface can also be used in other pages so that users can log in from several places in the site. When you create the login interface as an ASP.NET user control, you can easily reuse it in any page.

ASP.NET ...

Get The Microsoft Expression Web Developer's Guide to ASP.NET 3.5: Learn to create ASP.NET applications using Visual Web Developer 2008 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.