title: ASP.NET MVC - Populate a drop down list
body: <p>I'm new to ASP.NET MVC. I'm trying to figure out how create a basic drop down list from values in my database. In ASP.NET web forms, I know I can load a drop down list like this:</p>
  
  <p><strong>Page.aspx</strong></p>
  
  <pre><code>&lt;asp:DropDownList ID="myDropDownList" runat="server" DataTextField="FullName" DataValueField="ID" OnLoad="myDropDownList_Load" /&gt;
  </code></pre>
  
  <p><strong>Page.aspx.cs</strong></p>
  
  <pre><code>void myDropDownList_Load(object sender, EventArgs e)
  {
    if (Page.IsPostBack == false)
    {
      List&lt;Person&gt; people = GetPeopleFromDatabase();
      myDropDownList.DataSource = people;
      myDropDownList.DataBind();
    }
  }
  </code></pre>
  
  <p>How do I do the same type of thing in ASP.NET MVC? Thank you!</p>