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




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.


Used to group different controls together.


Renders a text label.


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


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.


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


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.


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


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


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


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


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


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


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


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.


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


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


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.


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


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


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 © 2008-2017.
If you may any questions please contact us: