How to: Add and Configure a List Control
Use a List control to display a list of items.
To add a List control to an ASP.NET mobile Web Forms page
Drag a List control from the Mobile Web Forms tab of the Toolbox onto a Form or Panel control, or inside a control's template on a mobile Web page. You can also drag it onto a mobile user control page.
In the Properties window, click the ellipsis button () in the Item box.
The List Properties dialog box is displayed.
Enter the items to appear in the list by doing the following:
Click Create new item.
In the Item Text box, enter the text for that item.
Optionally, in the Value box, enter a value.
To add numbers or bullets to a list
- In the Properties window, use the drop-down list next to the Decoration property to select numbers or bullets for the list items.
To change an item on a List control
In the Properties window, click the ellipsis button in the Item box.
The List Properties dialog box is displayed.
Select the item that you want to change.
Press F2 or click the item again to make the item editable.
Enter the new text for that item, and then press ENTER.
See Also
Concepts
Introduction to the List Control
Introduction to the ObjectList Control
Using Data Binding with ASP.NET Mobile Controls
Introduction to the Form Control
Introduction to the Panel Control