Mobile Controls

   

Now that you've seen a few examples of how mobile Web Forms work, let's look at what mobile controls are available. Table 20.1 contains a list of the controls that come with the Mobile Internet Toolkit.

Table 20.1. The Mobile Internet Toolkit Controls

Control

Purpose

mobile:Form

The outermost control on any mobile page. In many ways it is logically similar to the HTML <Form> tag. A page can have multiple forms.

mobile:Panel

Used to group different controls together.

mobile:Label

Renders a text label.

mobile:TextView

Allows the display of an arbitrary amount of data with optional formatting tags.

mobile:Link

Defines a link that can be clicked on. The link can be either to another page or to a different form on the same page.

mobile:List

Creates a list from either <item> tags inside it or from a database.

mobile:ObjectList

Similar to the mobile:List control, but with more features. Requires the list items to be data bound. This control can be used only with a data source.

mobile:TextBox

Generates single-line text boxes. The text that a user enters in a text box is stored in the Text property.

mobile:SelectionList

Creates a list from which items can be selected. The list may render differently on different devices.

mobile:Image

Defines an image to be output to the device. Similar to the HTML <image> tag.

mobile:Call

Defines a telephone number that can be dialed on devices capable of placing calls.

mobile:Command

Creates a button or link that, when clicked on, causes a PostBack to the server and executes the command handler code.

mobile:Calendar

Offers date picking functionality similar to the Web forms Calendar control, but is correctly formatted for mobile devices.

mobile:AdRotator

Offers advertisement rotation functionality in the same way that the Web forms AdRotator control does, but also provides adaptive rendering for mobile devices.

mobile:StyleSheet

This control is used to organize different styles. It has no visible representation. Style settings are considered to be advisory and are ignored if the device is not capable of displaying the style.

mobile:CompareValidator

Compares one control to another by using a specified comparison operator.

mobile:CustomValidator

Enables developers to provide their own method to validate another control's field.

mobile:RangeValidator

Validates that the values of another control fall within an allowable range, where the minimum and maximum are either provided directly or by reference to another control.

mobile:RegularExpressionValidator

Validates that the values of another control match a specified regular expression.

mobile:RequiredFieldValidator

Validates that the value of another control is something other than its initial value.

mobile:ValidationSummary

Displays a summary of all the validation errors that have occurred during the rendering of a form.

These controls are used much like the Web Form controls. These controls can be used as is or extended to provide additional capabilities.

   


Special Edition Using ASP. NET
Special Edition Using ASP.Net
ISBN: 0789725606
EAN: 2147483647
Year: 2002
Pages: 233

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net