Hi mgasft,
The problem that on ItemCommand even't e.Item.DataItem actually is null. So you can't get value of dataitem.
Walkaround is using of e.Item.Controls property.
For example, if you have lblCompMainID in Repeater you can get value of its Text property:
Dim l1 As Label
l1 = e.Item.Controls .FindControl("lblCompMainI
'here you have l1.Text
Main Topics
Browse All Topics





by: sara110Posted on 2007-03-25 at 08:18:54ID: 18788256
you know repeater is not very powerful when you want to use button or ... items which you want it to have action, I prefer datalist because it use the primary key as datakey and therefore you could access all of your items and controls in that datalist. Item.ItemI ndex) .com/forum s/t118666- problem-wi th- eitemda taitem-in- onitemdata bound.html
datalist1.DataKeys.Item(e.
and something like this... ,
http://www.velocityreviews