The navigation bar is added to the C1ViewPort control by default. You can remove the navigation bar from the control by setting the NavigationBarVisible property to False in Design view, in Source view, or 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 C1ViewPort control.
In Design View
Complete the following steps:
1. Right-click the C1ViewPort control to open its context menu and then select Properties from the list.
The Properties window opens with C1ViewPort's properties in focus.
2. Locate the NavigationBarVisible property and set it to False.
In Source View
To remove the navigation bar, add NavigationBarVisible="False" to the <cc2:C1ViewPort> tag so that the tag resembles the following:
<cc1:C1ViewPort ID="C1ViewPort1" runat="server" Text="Header" Height="507px" NavigationBarVisible="False" Width="320px">
In Code
Complete the following steps:
1. Import the following namespace into your project:
Imports C1.Web.iPhone.C1ViewPort
•C#
using C1.Web.iPhone.C1ViewPort;
2. Add the following code to the Page_Load event:
C1ViewPort1.NavigationBarVisible = False
•C#
C1ViewPort1.NavigationBarVisible = false;
3. Save the project and open it in a Studio for iPhone-compatible browser to execute the program.
This Topic
Illustrates the Following:
In this topic, you removed the navigation bar from the C1ViewPort control. The result of this topic will resemble the following image: