Prev | Current Page 85 | Next

Rob Cameron and Dale Michalk

"Pro ASP.NET 3.5 Server Controls and AJAX Components"

0 and later provides two control-building
options (which generally fall into four categories):
??? User controls
??? Custom server controls
User controls are a great option when you are packaging common UI layout for reuse
across a project or group of projects. In ASP.NET 1.1, user controls were often the method of
abstracting the areas, such as top and side banners, that are common to every page in a web
site, but this method met with varying success. In ASP.NET 2.0 and later, the MasterPage class,
which inherits from the UserControl class, along with the Content class provide a much more
powerful and flexible means to create a page template for a web site, as discussed in Chapter 1.
Custom server controls are more akin to what is traditionally considered a control or widget.
44 CHAPTER 2 ?–  ENCAPSULATING FUNCT IONALITY IN A SP.NET
Web parts are custom server controls that were originally available as part of the SharePoint
Server 2003 software development kit (SDK) and worked only within the Windows SharePoint
Services 2.0 in ASP.NET 1.1. In ASP.NET 2.0 and later, support for web parts is baked directly
into ASP.NET and no longer requires Windows SharePoint Services to run. Before we discuss
these two methods of creating controls in ASP.


Pages:
73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97