B
Bishop
I have a DataList with a command button. When I click the command button it
runs the following sub routine:
Sub DataList_ItemCommand(ByVal s As Object, ByVal e As
DataListCommandEventArgs)
If (e.CommandName = "Details") Then
txtTest.Text = e.Item.ItemIndex
End If
End Sub
The problem I have is that e.Item.ItemIndex always returns a "0". Any ideas
why?
runs the following sub routine:
Sub DataList_ItemCommand(ByVal s As Object, ByVal e As
DataListCommandEventArgs)
If (e.CommandName = "Details") Then
txtTest.Text = e.Item.ItemIndex
End If
End Sub
The problem I have is that e.Item.ItemIndex always returns a "0". Any ideas
why?