RenderOuterTable Property

FormView::RenderOuterTable Property

.NET Framework 4.6 and 4.5

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)

property bool RenderOuterTable {
	virtual bool get();
	virtual void set(bool value);

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
Available since 4.0
Return to top
© 2015 Microsoft