wwWebControl::AllowedMarkupChildren

A comma delimited list of element names that are allowed as child elements of this control and can be used without specifying runat="server" or the full wwWeb name.

This property is used for controls to notify the parser of what 'unconventional' element names to expect when parsing child control content.

Examples of controls that use this feature are the list control (for and asp:ListItem both of which can be specified without runat="server") and on a Repeater. For example the Repeater control defines this list:

foxpro
foxpro
AllowedMarkupChildren = "itemtemplate,headertemplate,footertemplate"

So that a Repeater can be defined like this:

html
html
<ww:wwWebRepeater runat="server" id="repList"> <HeaderTemplate> Header Text<hr /> <HeaderTemplate> <ItemTemplate> Company: <%= Company %><br> CareOf: <%= CareOf %> <p /> <ItemTemplate> <FooterTemplate> <hr /> </FooterTemplate> </ww:wwWebRepeater>

Notice that HeaderTemplate and ItemTemplate do not have a runat="server" attribute nor use the wwWebHeaderTemplate prefix.

This functionality is provided for control developers and this functionality is required for any control that is to be contained in the parent container with special naming syntax. Each item that is found (ie. ItemTemplate) is added to the container with AddControl.

o.AllowedMarkupChildren

See also

Class wwWebControl

© West Wind Technologies, 2025 • Updated: 2025-03-12
Comment or report problem with topic