Metropolis12
04-01-2007, 11:29 PM
Hello:
I am trying to get the current index number from the datalist with the DataList1_ItemCreated event as shown:
Dim dlValue As Integer
Dim item As DataListItem
dlValue = item.ItemIndex ' ...................... here is where I get "null reference" error say item.ItemIndex not set to instance of object
TextBox1.text = dlValue.toString
Is my syntax correct? Any help will be appreciated
Thanks
B^3
I am trying to get the current index number from the datalist with the DataList1_ItemCreated event as shown:
Dim dlValue As Integer
Dim item As DataListItem
dlValue = item.ItemIndex ' ...................... here is where I get "null reference" error say item.ItemIndex not set to instance of object
TextBox1.text = dlValue.toString
Is my syntax correct? Any help will be appreciated
Thanks
B^3