System.Web.UI.WebControls.TableCell.RenderContents Method

Renders the System.Web.UI.WebControls.TableCell contents to the specified System.Web.UI.HtmlTextWriter object.

Syntax

protected override void RenderContents (System.Web.UI.HtmlTextWriter writer)

Parameters

writer
The output stream that renders HTML content to the client.

Remarks

If the System.Web.UI.WebControls.TableCell control has child controls or is overridden in a derived class the base class's WebControl.RenderContents(System.Web.UI.HtmlTextWriter) method is called; otherwise, the value of the TableCell.Text property is written to the System.Web.UI.HtmlTextWriter object.

The TableCell.RenderContents(System.Web.UI.HtmlTextWriter) method is used primarily by control developers extending the functionality of the System.Web.UI.WebControls.TableCell control.

Requirements

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