Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Nested Dropdown list inside a datalist: Retrieve values

Reply
Thread Tools

Nested Dropdown list inside a datalist: Retrieve values

 
 
Mark
Guest
Posts: n/a
 
      11-19-2003
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


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
retrieve item from nested list given index tuple Alan G Isaac Python 5 08-14-2009 07:55 PM
Accessing dropdown list values inside of a repeater Jeff ASP .Net Web Controls 5 01-22-2004 06:46 AM
Accessing dropdown list values inside of a repeater Jeff ASP .Net 0 01-19-2004 06:52 AM
Re: Accessing DropDown List Inside Nested DataGrid MSFT ASP .Net 1 10-15-2003 05:53 PM
Re: Accessing DropDown List Inside Nested DataGrid Scott ASP .Net 0 10-15-2003 04:09 AM



Advertisments