Defines the methods that a class must implement in order to support the creation of style rules.

See Also: IStyleSheet Members


public interface IStyleSheet


Classes that implement this interface can use it to support the creation of style rules.

To customize the way cascading style sheets are created and registered, you must create a class that implements this interface.

The System.Web.UI.HtmlControls.HtmlHead class implements this interface for use by ASP.NET through the Page.Header property.


Adding or modifying styles or style rules programmatically during asynchronous postbacks is not supported. When you add AJAX capabilities to an ASP.NET Web page, asynchronous postbacks update regions of the page without updating the whole page. For more information, see ASP.NET AJAX Overview.


Namespace: System.Web.UI
Assembly: System.Web (in System.Web.dll)
Assembly Versions:
Since: .NET 2.0