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:
Imports C1.Web.iPhone.C1LaunchPad
•C#
using C1.Web.iPhone.C1LaunchPad;
2. Create the page object by adding the following code to the Page_Load event:
Dim C1LaunchPage1 As New C1LaunchPage()
•C#
C1LaunchPage C1LaunchPage1 = new C1LaunchPage();
3. Add the page object to the C1LaunchPad control by adding the following code to the Page_Load event:
C1LaunchPage1.Pages.Add(C1LaunchPage1)
•C#
C1LaunchPage1.Pages.Add(C1LaunchPage1);
4. Save the project and open it in a Studio for iPhone-compatible browser.