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

You can set style properties directly in the .aspx file in two ways.

To set style properties in the .aspx file

  • Declare the style property using a convention of hyphenating the style object name and property, as shown in the following example:

    No code example is currently available or this language may not be supported.

    -or-

  • Declare explicit elements in which you declare property elements of the appropriate data type, as shown in the following example:

    No code example is currently available or this language may not be supported.
Show: