System.Web.UI.HtmlTextWriter.WriteStyleAttribute Method

Writes the specified style attribute to the output stream.

Syntax

public virtual void WriteStyleAttribute (string name, string value)

Parameters

name
The style attribute to write to the output stream.
value
The value assigned to the style attribute.

Remarks

The HtmlTextWriter.WriteStyleAttribute(string, string) method writes the style attribute in the following form:

name=value;

Requirements

Namespace: System.Web.UI
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0