If the text parameter passed into the ChtmlTextWriter.WriteEncodedText(string) method is null or has a length of zero, then nothing is written.
Use the ChtmlTextWriter.WriteEncodedText(string) method when a string contains angle brackets (< or >) or an ampersand (&) and you want to ensure that they are rendered correctly on the requesting device.
The ChtmlTextWriter.WriteEncodedText(string) method uses the base class's HtmlTextWriter.WriteEncodedText(string) method.