Re: How loop datalist to retrieve textbox value?
- From: "Eliyahu Goldin" <removemeegoldin@xxxxxxxxxxxxxx>
- Date: Mon, 14 Nov 2005 09:45:19 +0200
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?
>
>
.
- Follow-Ups:
- Re: How loop datalist to retrieve textbox value?
- From: VB Programmer
- Re: How loop datalist to retrieve textbox value?
- References:
- How loop datalist to retrieve textbox value?
- From: VB Programmer
- How loop datalist to retrieve textbox value?
- Prev by Date: RE: ObjectDataSource update using callback instead of postback
- Next by Date: Re: Go back where I came from
- Previous by thread: How loop datalist to retrieve textbox value?
- Next by thread: Re: How loop datalist to retrieve textbox value?
- Index(es):