PagePorter Class Library

FpPage.PassBodyAttributes Property

Gets or sets the flag that tells any FpUserControl classes hosted on this page to not consume the attributes after the <body> tag.

[Visual Basic]
Public Property PassBodyAttributes As Boolean
[C#]
public bool PassBodyAttributes {get; set;}

Property Value

The flag that tells any FpUserControl classes hosted on this page to not consume the attributes after the <body> tag.

Remarks

Setting this flag to true is how shared borders are implemented. Attributes for the shared border such as background color are specified in the border's body tag (i.e. <body bgcolor="#0000ff">), and are passed on to the page when it starts a table element for it with the td tag. The code in FpPage generates these table tags and leaves the td tag open for FpUserControl to close. So, if there is no body tag in the shared border user control, FpUserControl will emit an end tag to close it.

See Also

FpPage Class | Parastream.Web.UI Namespace