Adding a Page to the C1LaunchPad Control

Each C1LaunchPad control can hold multiple pages. In this topic, you will learn how to add a page to the C1LaunchPad control in Design view, in Source view, and in code. This topic assumes that you have created an AJAX-enabled ASP.NET project that contains a ScriptManager control (see Creating an AJAX-Enabled ASP.NET Project) and a C1LaunchPad control.

In Design View

Complete the following steps:

1.   Click C1LaunchPad's smart tag () to open the C1LaunchPad Tasks menu and select C1LaunchPad Designer.

      The C1LaunchPad Designer Form opens.

2.   In treeview, select Pages.

3.   Click the Add Child Item drop-down arrow and select LaunchPage.

 

 

4.   Click OK to close the C1LaunchPad Designer Form.

In Source View

To add a page to the C1LaunchPad control in Source view, place the following XHTML markup between the <cc1:C1LaunchPad> tags:

 

<Pages>

    <cc1:C1LaunchPage ID="C1LaunchPage1" runat="server" CssClass="C1Panel">

    </cc1:C1LaunchPage>

</Pages>

In Code

Complete the following steps:

1.   Import the following namespace into your project:

      Visual Basic

      C#

2.   Create the page object by adding the following code to the Page_Load event:

      Visual Basic

      C#

3.   Add the page object to the C1LaunchPad control by adding the following code to the Page_Load event:

      Visual Basic

      C#

4.   Save the project and open it in a Studio for iPhone-compatible browser.


Send us comments about this topic.
Copyright © GrapeCity, inc. All rights reserved.