MobileListItem.NET 1.1, disposable

System.Web.UI.MobileControls (

The MobileListItem pepresents an individual item in a List or SelectionList control. You can iterate through a collection of all the MobileListItem instances in the list using the control's Items collection. In addition, some events (like List.ItemCommand and List.ItemDataBind) provide a MobileListItem instance that identifies the appropriate item in the list.

You can determine whether or not an item is selected using the Selected property. In addition, you can retrieve the text for the list item (Text and Value), and if the item is data-bound, you can retrieve the corresponding data object (DataItem).

public class MobileListItem : TemplateContainer, System.Web.UI.IStateManager {
// Public Constructors
   public MobileListItem( );
   public MobileListItem(MobileListItemType itemType);
   public MobileListItem(object dataItem, string text, string value);
   public MobileListItem(string text);
   public MobileListItem(string text, string value);
// Public Instance Properties
   public object DataItem{set; get; }
   public int Index{get; }
   public bool Selected{set; get; }
   public string Text{set; get; }
   public string Value{set; get; }
// Public Static Methods
   public static MobileListItem FromString(string s);
   public static implicit operator MobileListItem(string s);
// Public Instance Methods
   public override bool Equals(object o);          // overrides object
   public override int GetHashCode( );               // overrides object
   public override string ToString( );               // overrides object
// Protected Instance Methods
   protected override bool OnBubbleEvent(object source, EventArgs e);// overrides System.Web.UI.Control


System.Object System.Web.UI.Control(System.ComponentModel.IComponent, System.IDisposable, System.Web.UI.IParserAccessor, System.Web.UI.IDataBindingsAccessor) MobileControl(System.Web.UI.IAttributeAccessor) Panel(ITemplateable) TemplateContainer(System.Web.UI.INamingContainer) MobileListItem(System.Web.UI.IStateManager)



Returned By

ListCommandEventArgs.ListItem, ListDataBindEventArgs.ListItem, MobileListItemCollection.{GetAll( ), this}, SelectionList.Selection

Passed To

ListCommandEventArgs.ListCommandEventArgs( ), ListDataBindEventArgs.ListDataBindEventArgs( ), MobileListItemCollection.{Add( ), Contains( ), IndexOf( ), Insert( ), Remove( ), SetAll( )}

    Part I: Introduction to ASP.NET
    Part III: Namespace Reference
    Chapter 40. The System.Web.UI.MobileControls Namespace
    Chapter 42. The System.Web.UI.WebControls Namespace