title: How to populate dropdownlist dynamically loop
body: <p>I have a dropdown list with 6 possible choices.</p>
  
  <pre><code>&lt;asp:DropDownList runat="server" ID="ddlSel1" 
          onselectedindexchanged="ddlSel1_SelectedIndexChanged" AutoPostBack="true"&gt;
          &lt;asp:ListItem&gt;&lt;/asp:ListItem&gt;
  &lt;asp:ListItem&gt;One&lt;/asp:ListItem&gt;
  &lt;asp:ListItem&gt;Two&lt;/asp:ListItem&gt;
  &lt;asp:ListItem&gt;Three&lt;/asp:ListItem&gt;
  &lt;asp:ListItem&gt;Four&lt;/asp:ListItem&gt;
  &lt;asp:ListItem&gt;Five&lt;/asp:ListItem&gt;
  &lt;asp:ListItem&gt;Six&lt;/asp:ListItem&gt;
  
  &lt;/asp:DropDownList&gt;
  </code></pre>
  
  <p>Once a user has selected an option from ddlSel1, I want ddlSel2 to populate with the same list excluding the one selected in ddlSel1.</p>
  
  <p>I did this like so:</p>
  
  <pre><code>if (ddlSel1.SelectedItem.Value == "One")
      {
          string[] stringArray = { "", "TWO", "THREE", "FOUR", "FIVE", "SIX" };
          ddlSel2.DataSource = stringArray;
          ddlSel2.DataBind();
      }
  </code></pre>
  
  <p>My question is how do I loop through this without having to type a separate IF statement each time.</p>