title: Making drop down list in ASP.Net by foreach loop
body: <p>we can make dropdown list in asp.net component with below syntax</p>
  
  <pre><code> &lt;asp:DropDownList ID="test" runat="server"&gt;
        &lt;asp:ListItem Text="1" Value="1"&gt;&lt;/asp:ListItem&gt;
   &lt;/asp:DropDownList&gt;
  </code></pre>
  
  <p>if we want our combo box contain 1 to 1000 , is there any way to populate it with foreach loop , rather than manually add 1000 item to it ?</p>