CHAPTER 31

image

Creating Custom Controls

In this chapter we show you the core techniques required to create custom controls: how to create and register controls, how to manage the IDs that controls use, how to create controls that can be configured through declarative elements and how to write HTML from server controls.

These features underpin all ASP.NET controls and understanding them will help you apply the built-in controls that we describe later in this part of the book and—most importantly—help you figure out what’s going on when you don’t get the behavior you expect. If you just want to start applying built-in controls to your projects, then ...

Get Pro ASP.NET 4.5 in VB, Fifth Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.