asp.net.ph

RepeaterItem.ItemType Property

System.Web.UI.WebControls Namespace   RepeaterItem Class


Returns the type of an item in a Repeater control.

Syntax


Script [ ListItemType variable = ] RepeaterItem.ItemType

Property Value


variable One of the ListItemType enum values.

The property is read only with no default value.

Remarks

Use the ItemType property to determine the type of a RepeaterItem in a given Repeater control.

Example

The following example demonstrates how to use the ItemType property to determine the type of an item in a Repeater control. The order in which the items are positioned in the Repeater is displayed along with the item type.


foreach ( RepeaterItem item in myRepeater.Items ) {
   msg.Text += "<br>" + item.ItemIndex + " " + item.ItemType;
}
  C# VB

 Show me 

See Also

RepeaterItem Members   ItemIndex Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph