Protected Sub ListView1_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles ListView1.PreRender
If e.Item.ItemType = ListViewItemType.DataItem Then
Dim lvDataItem As ListViewDataItem = CType(e.Item, ListViewDataItem)
Dim item As String = lvDataItem.DataItem.ToString()
Dim ImageButton As Image = CType(e.Item.FindControl("ImageButton1"), Image)
end If
end sub
|