Web Form Formatting

When designing Web pages, you will need to consider how to give them a more pleasant and attractive look without eliminating their readability. There are two ways to do this in ASP.NET Forms—through formatting properties of the WebControl base class and through Cascading Style Sheets (CSS).

WebControl Strongly-Typed Properties

Web controls descend from the WebControl class, which contains various properties for display formatting. These properties are listed in Table 26.4.

Table 26.4. WebControl Strongly-typed Formatting Properties
PropertyDescription
AccessKeySpecifies a keyboard shortcut key to set focus to the WebControl.
BackColorBackground color of the WebControl.
BorderColorBorder color of the WebControl.
BorderStyleBorder ...

Get Delphi for .NET Developer’s Guide 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.