Chapter 11. Styles in Controls

The WebControl class exposes style properties such as ForeColor, BackColor, and Font that govern the visual appearance of the HTML element rendered by a Web control. These properties provide an object-oriented abstraction of appearance-related HTML and cascading style sheet (CSS) attributes. As we described in Chapter 8, if your control renders visual HTML elements, you should derive from the WebControl class so that your control inherits basic style properties and the style architecture that enables you to modify or add style properties.

In this chapter, we’ll examine the style properties of ...

Get Developing Microsoft® ASP.NET Server Controls and Components 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.