B
BisMan
Thanks Nathan,
Nathan said:*If you are doing it from withing one of the DataList events (such
as
ItemCommand) you can do the following:
((TextBox)e.Item.FindControl("StudentID")).Text
Just like you were before, only you are accessing the current item
using one
of the event arguments
If you are not working in one of the DataList events, use the
following:
((TextBox)DataList.Items(item_index).FindControl("StudentID")).Text