This documentation is archived and is not being maintained.
How to: Set Web Server Control Color Properties
Visual Studio 2005
To set a Web server control property such as the BackColor property to a color, you assign a reference to the Color object.
To set Web server control properties to a color
Call theobject's method, passing it a numeric value (RGB) or the passing it the name of a color as string. Alternatively, you can assign the color using a static method that references a predefined color name, as in the following example: