Re: How loop datalist to retrieve textbox value?



foreach (DataListItem item in myDataList.Items)
{
myTextBox = item.FindControl ("textboxId");
}

Note, that the textbox in the item template should have runat="server".

Eliyahu

"VB Programmer" <dont@xxxxxxxxxxx> wrote in message
news:uqg9RTL6FHA.1416@xxxxxxxxxxxxxxxxxxxxxxx
> I have a datalist for a shopping cart summary. Each data "row" has a text
> box where they can enter a quantity. How do I loop thru the entire
datalist
> to figure out the total shopping cart price?
>
>


.