title: ASP .NET c# Add List<Object> to ListView afer DataBild
body: <p>Im facing a pretty weird problem today.
  I created a DropDownList which adds the selected Item to a List. The List will be binded to the ListView.</p>
  
  <p>This is the Dropdown:</p>
  
  <pre><code>&lt;asp:DropDownList ID="ddlChooseNewApplication" runat="server" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged" AutoPostBack="True"&gt;
          &lt;asp:ListItem Selected="True"&gt;Bitte wählen&lt;/asp:ListItem&gt;
          &lt;asp:ListItem Value="windows"&gt;Windows&lt;/asp:ListItem&gt;
          &lt;asp:ListItem Value="mail"&gt;E-Mail&lt;/asp:ListItem&gt;
          &lt;asp:ListItem Value="app1"&gt;App1&lt;/asp:ListItem&gt;
          &lt;asp:ListItem Value="app2"&gt;App2&lt;/asp:ListItem&gt;
          &lt;asp:ListItem Value="app3"&gt;App3&lt;/asp:ListItem&gt;
  &lt;/asp:DropDownList&gt;
  </code></pre>
  
  <p>Next, when a Item has been clicked it runs the following code:</p>
  
  <pre><code>//This is a global variable
  List&lt;NewApplicationModels&gt; applicationName = new List&lt;NewApplicationModels&gt;(); 
  
  protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
      {
          string value = ddlChooseNewApplication.SelectedValue.ToString();
  
          applicationName.Add(new NewApplicationModels(){ ApplicationName = value});
          ListViewNewApplications.DataSource = applicationName;
          ListViewNewApplications.DataBind();
      }
  </code></pre>
  
  <p>It will be added to a List&lt;> which should add the selected application to the ListView which looks like this:</p>
  
  <pre><code>&lt;asp:ListView ID="ListViewNewApplications" runat="server"&gt;
      &lt;ItemTemplate&gt;
          &lt;br /&gt;&lt;br /&gt;
          &lt;%# Eval("ApplicationName") %&gt;&lt;br /&gt;
  
          &lt;asp:Label ID="Label3" runat="server" Text="Titel"&gt;&lt;/asp:Label&gt;&lt;br /&gt;
          &lt;asp:TextBox ID="tbNewTitle" runat="server"&gt;&lt;/asp:TextBox&gt;&lt;br /&gt;&lt;br /&gt;
  
          &lt;asp:Label ID="Label4" runat="server" Text="Beschreibung"&gt;&lt;/asp:Label&gt;&lt;br /&gt;
          &lt;asp:TextBox ID="tbNewDescription" runat="server" TextMode="MultiLine"&gt;&lt;/asp:TextBox&gt;&lt;br /&gt;&lt;br /&gt;
          &lt;/div&gt;
      &lt;/ItemTemplate&gt;
  &lt;/asp:ListView&gt;
  </code></pre>
  
  <p>Adding a single Item to the ListView works. The problem is, if I select a new Item in the DropDown, the current object in the ListView will be overwritten. I want it to create a new Item under the current Item.
  Where is the mistake?</p>
  
  <p>Many thanks in advance</p>