In this topic, you will learn how to add pages to the C1MultiView control in Source view, Design 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 C1MultiView control.
In Design View
Complete the following steps:
1.
Click C1MultiView's smart tag ()
to open the C1MultiView Tasks menu and then select MultiView
Designer from the list.
The C1MultiView Designer Form opens.
2.
Click the Add Child Item button to add a page to the control.
3. Click OK to close the C1MultiView Designer Form.
One page is added to the C1MultiView control.
In Source View
To add a page to C1MultiView, enter the following code between the <cc1:C1MultiView> and </cc2: MultiView> tags:
<Views>
<cc1:C1View runat="server" ID="C1View01">
</cc1:C1View>
</Views>
In Code
Complete the following steps:
1. Import the following namespace into the project:
Imports C1.Web.iPhone.C1MultiView
•C#
Using C1.Web.iPhone.C1MultiView;
2. Create the C1View object by adding the following code to the Page_Load event:
Dim C1View01 As New C1View()
•C#
C1View C1View01 = new C1View();
3. Add the C1View object to the C1MultiView control by adding the following code to the Page_Load event:
C1MultiView1.Controls.Add(C1View01)
•C#
C1MultiView1.Controls.Add(C1View01);
4. Save the project and open it in a Studio for iPhone-compatible browser to execute the program.