|
-
Apr 25th, 2006, 03:34 PM
#1
Thread Starter
Fanatic Member
Datagrid question
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|