当前位置: 首页 > 网络学院 > 服务端脚本教程 > .NET Mobile > ASP.NET Mobile Controls Reference
.NET Mobile supports three main objects:
The Mobile Page is the container for the application.
Each Mobile Page can have one or more Mobile Forms.
Each Mobile Form can have zero or more Mobile Panels.
Mobile Forms and Mobile Panels are used to group Mobile Controls.
Mobile Controls are grouped into:
UI controls are controls that displays the user interface:
Name | Function |
---|---|
Command | Performs an action |
Form | Defines a container for mobile controls |
Image | Defines an image |
Label | Defines a text |
Link | Defines a hyperlink |
List | Defines a list |
MobilePage | Defines a base class for all mobile pages |
ObjectList | Defines a list of data objects |
Panel | Defines a container for other controls |
SelectionList | Defines a list to select from |
StyleSheet | Defines styles to apply to other controls |
TextBox | Defines a single line input box |
TextView | Defines a multi-line input box |
Validation controls are used to validate the data entered by a user:
Name | Function |
---|---|
CompareValidator | Compares the value of one input control to the value of another input control or to a fixed value |
CustomValidator | Allows you to write a method to handle the validation of the value entered |
RangeValidator | Checks that the user enters a value that falls between two values |
RegularExpressionValidator | Ensures that the value of an input control matches a specified pattern |
RequiredFieldValidator | Makes an input control a required field |
ValidationSummary | Displays a report of all validation errors occurred in a page |
Utility controls support complicated user interfaces with minimum of code:
Name | Function |
---|---|
AdRotator | Displays advertisements |
Calendar | Displays a calendar |
PhoneCall | Calls a telephone number |