When do you want to access the data?
You can access the data when the item is created, in a situation where you want to total the values at the end for example.
Or you can access the data on an event, like if you need to know the value of the text box when a button is clicked on that line.
I think it will have to be a <asp:textbox> control with runat server, It will definately need an id.
Code in the "_ItemCommand" or the "_ItemCreated" event depending on your need.
The text of the text box can be obtained with:
TheValue = ((TextBox) e.Item.FindControl("TheTextBoxName")).Text;
Above code is untested and in c#.
TheValue will be a string.
With the item created event you will need to be sure that the item type is a item template as the header will not contain the textbox and will throw an error
eg. e.Item.ItemType == ListItemType.Item
======================================
They say, best men are moulded out of faults,
And, for the most, become much more the better
For being a little bad.
======================================
|