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
====================
<asp
ataList id="DataList1" runat="server" DataKeyField="PersonID">
<ItemTemplate>
<asp:TextBox ID="txtName" Runat="server" Text='<%#
Container.DataItem("Firstname") %>' Enabled="False">
</asp:TextBox>
</td>
<td>
<asp
ropDownList ID="dlNotChild" Runat="server" DataSource="<%#
GetNotChild() %>" DataTextField="PersonName" DataValueField="PersonID">
</asp
ropDownList>
</td>
</ItemTemplate>
</asp
ataList>
====================
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
====================
<asp
<ItemTemplate>
<asp:TextBox ID="txtName" Runat="server" Text='<%#
Container.DataItem("Firstname") %>' Enabled="False">
</asp:TextBox>
</td>
<td>
<asp
GetNotChild() %>" DataTextField="PersonName" DataValueField="PersonID">
</asp
</td>
</ItemTemplate>
</asp
====================
The main datalist is bound to a dataview as is the dropdown list
(GetNotChild routine)
Thanks for your time
Regards
Mark