By default, the state of a C1SwitchButton control is set to the OFF position. You can change the state of the control by setting the Checked Boolean property 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).
In Design View
Complete the following steps:
1. In the Toolbox, double-click C1SwitchButton to add a C1SwitchButton control to your project.
2.
Click C1SwitchButton's
smart tag () to open the
C1SwitchButton Tasks menu.
3. Select the Checked check box.
The C1SwitchButton control is set to the ON position.
In Source View
To change the state of the C1SwitchButton control, add Checked="True" to the <cc1:C1SwitchButton1> tag so that the markup resembles the following:
<cc2:C1SwitchButton ID="C1SwitchButton1" runat="server" Checked="True" />
In Design View
Complete the following steps:
1. In the Toolbox, double-click C1SwitchButton to add a C1SwitchButton control to your project.
2. Add the following code to the Page_Load event to set the Checked property:
C1SwitchButton1.Checked = True
•C#
C1SwitchButton1.Checked = true;
3. Save the project and open it in a Studio for iPhone-compatible browser to execute the program.