Writes the specified style attribute and value to the output stream, and encodes the value, if specified.
The HtmlTextWriter.WriteStyleAttribute(string, string, bool) method writes the style attribute in the following form:
name=value;
The System.Web.HttpUtility.HtmlAttributeEncode(string, System.IO.TextWriter) method is used to encode the value parameter.