Writes a series of HTML 3.2–specific characters and text to the output stream for an ASP.NET server control. The Html32TextWriter class provides formatting capabilities that ASP.NET server controls use when rendering HTML 3.2 content to clients.
using System.IO;using System.Web.UI;namespace Examples.AspNet{public class CustomHtml32TextWriter : Html32TextWriter{// Create a constructor for the class// that takes a TextWriter as a parameter.public CustomHtml32TextWriter(TextWriter writer): this(writer, DefaultTabString){ }// Create a constructor for the class that takes// a TextWriter and a string as parameters.public CustomHtml32TextWriter(TextWriter writer, String tabString): base(writer, tabString){}