ComponentOne Extender Controls for ASP.NET Web Forms
Wijmo Control Toolkit Extender Controls / C1Expander Extender / Displaying External Content in the Expander
In This Topic
    Displaying External Content in the Expander
    In This Topic

    The C1ExpanderExtender supports  displaying external content. For example, you can display a Web site within the content area of the expander extender. In this example, you'll display the ComponentOne Web site within an expander by setting the ContentUrl property.

    Complete the following steps:

    1. Create a new ASP.NET Web application.
    2. In the Solution Explorer, right-click the project and choose Add Reference. Locate and add a reference to the C1.Web.Wijmo.Extenders assembly.
    3. Switch to Source view, and add the following markup at the top of the page to register the assembly:

    <%@ Register Assembly="C1.Web.Wijmo.Extenders.4" Namespace="C1.Web.Wijmo.Extenders.C1Expander" TagPrefix="Expander" %>

    1. Note that you may need to edit the above depending on the assembly you are using.
    2. And add the following markup within the main <div> tag to add a Panel control and set the expander extender:

    <asp:Panel ID="Panel1" runat="server">

        <h3>componentone.com (click to collapse/expand)</h3>

        <div>

        </div>

    </asp:Panel>

    <Expander:C1ExpanderExtender ID="Panel1_ExpanderExtender" runat="server" TargetControlID="Panel1" ContentUrl="http://www.componentone.com/">

    </Expander:C1ExpanderExtender>

    Note that the ContentUrl property is set to display a Web site.

    What You've Accomplished

    Press F5 to run your application and notice that the ComponentOne Web site is displayed inside the expander extender. Note that you can interact with the Web site at run time within the expander.