Note that there are some explanatory texts on larger screens.

plurals
  1. POASP.NET Find DropDown Value Inside Repeater Control
    text
    copied!<p>ok, ive had a few questions on this subject, i hope Im clearer this time.</p> <p>I want to find the values from a number of dropdown controls inside a repeater control. I eventually want to build a multidimensional array, so I can loop through each item and add them to a database table.</p> <pre><code>&lt;asp:Repeater ID="myRepeater" runat="server"&gt; &lt;ItemTemplate&gt; &lt;asp:DropDownList ID="AdTitle" runat="server"&gt; &lt;asp:ListItem Selected="True" Value="" Text=""/&gt; &lt;asp:ListItem Selected="False" Value="Miss" Text="Miss"/&gt; &lt;asp:ListItem Selected="False" Value="Ms" Text="Ms"/&gt; &lt;asp:ListItem Selected="False" Value="Mrs" Text="Mrs"/&gt; &lt;asp:ListItem Selected="False" Value="Mr" Text="Mr"/&gt; &lt;asp:ListItem Selected="False" Value="Other" Text="Other"/&gt; &lt;/asp:DropDownList&gt; &lt;asp:TextBox ID="AdFullName" runat="server"&gt;&lt;/asp:TextBox&gt; &lt;/ItemTemplate&gt; &lt;ItemTemplate&gt; &lt;asp:DropDownList ID="AdTitle" runat="server"&gt; &lt;asp:ListItem Selected="True" Value="" Text=""/&gt; &lt;asp:ListItem Selected="False" Value="Miss" Text="Miss"/&gt; &lt;asp:ListItem Selected="False" Value="Ms" Text="Ms"/&gt; &lt;asp:ListItem Selected="False" Value="Mrs" Text="Mrs"/&gt; &lt;asp:ListItem Selected="False" Value="Mr" Text="Mr"/&gt; &lt;asp:ListItem Selected="False" Value="Other" Text="Other"/&gt; &lt;/asp:DropDownList&gt; &lt;asp:TextBox ID="AdFullName" runat="server"&gt;&lt;/asp:TextBox&gt; &lt;/ItemTemplate&gt; </code></pre> <p></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload