
List | 755
MobileControls
Namespace
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
Hierarchy
System.Object ➝ System.Web.UI.Control(System.ComponentModel.IComponent, System.
IDisposable, System.Web.UI.IParserAccessor, System.Web.UI.IDataBindingsAccessor)
➝
MobileControl(System.Web.UI.IAttributeAccessor) ➝ TextControl ➝ Link(System.Web.UI.
IPostBackEventHandler)
Subclasses
LiteralLink
Returned By
System.Web.UI.MobileControls.Adapters.HtmlLinkAdapter.Control, System.Web.UI.Mobile-
Controls.Adapters.WmlLinkAdapter.Control
List
System.Web.UI.MobileControls (system.web.mobile.dll)
.NET 1.1, disposable
class
The List control allows you to display a list of static strings or text links. These items
can be added declaratively (through the .aspx file or configured with the property
designer in Visual Studio .NET), or they can be added and examined programmati-
cally through the Items property. This property provides a collection of MobileListItem
instances, each of which can define visible text (MobileListItem.Text) and a non-visible
value (MobileListItem.Value). In addition, the List control supports data binding. You simply
need to set the DataSource property to a valid data source (like an System.Collections.ArrayList,
System.Data.DataTable,orSystem.Data.DataView), and then specify the properties or fields to
bind using the DataTextField and DataValueField ...