Specifies the path of an external CSS file that provides CSS styles used by this control.
[Visual Basic]
Public Property CssFile As
String
[C#]
public
String CssFile {get; set;}
Property Value
System.String
The path of the CSS file.
This property is read/write.
Remarks
This external CSS file will be rendered as a link element in the page when the control is rendered.
Use this property to switch the external CSS file if you want to implement skin based on CSS file. You can define a set of CSS classes in different CSS files with different style settings, then use this property to load one of them.
For more information about skin, see theme and skin.
Tip:
Uses '~' to represent the Web application root in the file path.
Tip:
If you do not want to use an external CSS file, you can also specify CSS styles in CssBlock property.
See Also
WebControl Class | EO.Web Namespace