Custom Controls Defined

We've seen quite a variety of controls so far in this book, and in this chapter we're adding one more: custom controls. However, we're going to also look at components at the end of the chapter, so it would help if we had a good understanding of just what a control is, compared to a component, or even just a simple class.

According to the .NET documentation, a control is defined as any object that is derived, either directly or indirectly, from the System.Web.UI. Control class. All the controls discussed in earlier chapters derive from this class at some point in their hierarchy. Apart from this distinction, the primary difference between a control, and any other custom piece of functionality, is that it renders User Interface ...

Get ASP.NET by Example 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.