ComponentOne Expander for ASP.NET Web Forms
Elements / Content Element
In This Topic
    Content Element
    In This Topic

    The C1Expander's content area initially consists of an empty area with the text "Content". In the content area you can add rich text through custom HTML content, URL links through the ContentUrl property, and add arbitrary controls through the content template. Elements in the content area of the control can be added and moved on the control at design time through a simple drag-and-drop operation.

    The following image labels the content area of the C1Expander control:

    You can use the following elements to customize the content area of the C1Expander control:

    Content

    You can add content to the control at design time. To add content, simply click in the content area of the control and begin typing, or add images or controls to the content areas as you would normally.

    When you add content to the C1Expander control and switch to Source view you will notice that your content appears inside <Content> tags inside the <cc1:C1Expander> tags:

    <cc1:C1Expander ID="C1Expander1" runat="server">
    <Header>
    Header
    </Header>
    <Content>
    Content
    </Content>
    </cc1:C1Expander>

    ContentUrl

    You can use the ContentUrl property to set external content to appear within the content area of the C1Expander control. See the Displaying External Content topic for details.

    See Also