Here's some code I have. I get the error:

Object reference not set to an instance of object. It happens on the
myitems(0) line. The 'contactid' is a bound column.




If objitem.ItemType = ListItemType.Item Or objitem.ItemType = ListItemType.AlternatingItem Then

myitems(0) = CType(objitem.FindControl("contactid"), Label).Text
myitems(1) = CType(objitem.FindControl("name"), Label).Text
myitems(2) = CType(objitem.FindControl("admin"), Label).Text
myitems(3) = CType(objitem.FindControl("broadcast"), Label).Text
End If