How to: Set ASP.NET Server Control Style Properties in the Designer

The designer provides tools that make it easier to set style properties.

To set style properties in the designer

  1. In Design view, select the control that you want to set styles for.

  2. In Properties, do the following:

    • Expand Styles, and then set properties for that object.

      For example, to set properties for the ItemStyle property, in Properties, expand ItemStyle.

      –or–

    • If the control supports property builders, such as the DataList control, in Properties, click the properties icon to open the Properties dialog box. Click Format, under Objects, click a style object, and then set its properties.

See Also

Tasks

How to: Set ASP.NET Server Control Style Properties Programmatically

How to: Set ASP.NET Server Control Style Properties Using ASP.NET Syntax

Concepts

ASP.NET Web Server Controls and CSS Styles