M
Mark
Hi, I have a datalist that contains a textbox as well as a dropdown list.
For each single row in the datalist the associated dropdown list can have at
least one value
What I would like to be able to do is when a single update button is clicked
the textbox value along with the associated dropdown value is printed for
each row in the datalist.
The number of rows in the datalist can vary. Here is my Datalist code
====================
<aspataList id="DataList1" runat="server" DataKeyField="PersonID">
<ItemTemplate>
<asp:TextBox ID="txtName" Runat="server" Text='<%#
Container.DataItem("Firstname") %>' Enabled="False">
</asp:TextBox>
</td>
<td>
<aspropDownList ID="dlNotChild" Runat="server" DataSource="<%#
GetNotChild() %>" DataTextField="PersonName" DataValueField="PersonID">
</aspropDownList>
</td>
</ItemTemplate>
</aspataList>
====================
The main datalist is bound to a dataview as is the dropdown list
(GetNotChild routine)
Thanks for your time
Regards
Mark
For each single row in the datalist the associated dropdown list can have at
least one value
What I would like to be able to do is when a single update button is clicked
the textbox value along with the associated dropdown value is printed for
each row in the datalist.
The number of rows in the datalist can vary. Here is my Datalist code
====================
<aspataList id="DataList1" runat="server" DataKeyField="PersonID">
<ItemTemplate>
<asp:TextBox ID="txtName" Runat="server" Text='<%#
Container.DataItem("Firstname") %>' Enabled="False">
</asp:TextBox>
</td>
<td>
<aspropDownList ID="dlNotChild" Runat="server" DataSource="<%#
GetNotChild() %>" DataTextField="PersonName" DataValueField="PersonID">
</aspropDownList>
</td>
</ItemTemplate>
</aspataList>
====================
The main datalist is bound to a dataview as is the dropdown list
(GetNotChild routine)
Thanks for your time
Regards
Mark