
Creating Your Own ControlsASP.NET comes with its own set of server-side controls — so why create your own? And whywould you need three different kinds
Figure 1-412Chapter 105_57860x ch01.qxd 10/4/05 9:26 PM Page 12
It would be convenient to have a single control that could be used to build all lists. This control could beimplemented in one of two ways: it could e
Figure 1-5 14Chapter 105_57860x ch01.qxd 10/4/05 9:26 PM Page 14
When to Use a User ControlUser controls should be your first choice for creating Web Parts where the control will be used on a sin-gle Web site only a
Studio .NET designer, it’s going to take much longer to lay out your user interface. And, without thebenefit of Visual Studio .NET’s IntelliSense supp
When you build an application, you are faced with decisions on what user interface will work best for your users. For instance, the application’s desi
❑ Listing books: One control might provide a single column with limited options for sorting thelist, another control could support complex sorting opt
All of this work, both in the infrastructure that supports your Web application and in the applicationcode behind your login page, has just one purpos
Figure 1-6Within the area of user management, some other features of SharePoint have also migrated intoASP.NET 2.0. Within SharePoint, it’s possible f
The final component of the personalization framework is the profile service. A profile is all the data associated with a specific identity. The profil
because both user controls and custom controls can be used as Web Parts, you can drag customizationcomponents from both the Toolbox and Solution Explo
05_57860x ch01.qxd 10/4/05 9:26 PM Page 22
all of your development without the benefit of a drag-and-drop designer). As you’ll see in this book, allthe features that you can take advantage of i
This description of how a Web Part is used on a SharePoint site omits an important step. After a WebPart is created it is added to one of several Web
Beyond Reusability with Web PartsThrough customization, Web Parts give you the opportunity to gain a new and more challenging class of benefits: you c
Undoubtedly, the user community for your application will contain a variety of users, many with special-ized needs. It’s entirely possible that every
Figure 1-2Implementing Reusability with ControlsOne of the key ways to improve your productivity as a developer is through the re-use of components. I
When most developers think of “objects” they think of middleware components— items used to encapsulate business logic and data access that are called
Obviously, many components in this application can be written once and then reused. For instance, a setof business rules that calculate a customer’s c
Komentarze do niniejszej Instrukcji