ComponentOne Expander for ASP.NET AJAX: C1Expander Elements > Content Element

Content Element

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 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

      ContentUrl

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" HeaderSize="25px" Height="200px" Width="100px">

    <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.


Send comments about this topic to ComponentOne.
Copyright © ComponentOne LLC. All rights reserved.