Adding Pages to the C1MultiView Control

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:

      Visual Basic

      C#

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

      Visual Basic

      C#

3.   Add the C1View object to the C1MultiView 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 to execute the program.


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