Export (0) Print
Expand All
Expand Minimize

FormView.RenderOuterTable Property

Gets or sets a value that indicates whether the control encloses rendered HTML in a table element in order to apply inline styles.

Namespace:  System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

public virtual bool RenderOuterTable { get; set; }
<asp:FormView RenderOuterTable="True|False" />

Property Value

Type: System.Boolean
true if the control encloses rendered HTML in a table element; otherwise, false. The default is true.

In order to make inline style properties such as ForeColor apply to all the HTML that is rendered for the control, ASP.NET encloses the rendered HTML in a table element. If you do not want the outer table element to be rendered, set this property to false. In that case, if you try to set inline style properties that apply to the whole control, an exception is thrown.

.NET Framework

Supported in: 4.5, 4

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft