You can change the type of button displayed to one of seven types (see C1Button Control) using the ButtonType property. This topic illustrates how to change the button type 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 C1Button control.
In Design View
Complete the following steps:
1. Right-click the C1Button control to open its context menu and then select Properties from the list.
The Properties window opens with C1Button's properties in focus.
2. Locate the ButtonType property, click its drop-down arrow, and select a button type from the list. For this example, select Destructive.
3. Save the project and open it in a Studio for iPhone-compatible browser.
In Source View
To change the button type, add ButtonType="Destructive" to the <cc1:C1Button> tag so that the XHTML markup resembles the following:
<cc1:C1Button ID="C1Button1" runat="server" Text="Destructive" ButtonType="Destructive"/>
Save the project and open it in a Studio for iPhone-compatible browser.
In Code
Complete the following steps:
1. Import the following namespace into your project:
Imports C1.Web.iPhone.C1Button
•C#
using C1.Web.iPhone.C1Button;
2. Set the ButtonType property to Destructive by adding the following code to the Page_Load event:
C1Button1.ButtonType = C1ButtonType.Destructive
•C#
C1Button1.ButtonType = C1ButtonType.Destructive;
3. Save the project and open it in a Studio for iPhone-compatible browser.
This
Topic Illustrates the Following:
The result of this topic will resemble the following image: