title: How to add to a list multiple selected values of a ListBox ? C#, ASP.NET web site
body: <p>I'm working on one of my first projects. I have a listbox where I select multiple values and I would like to add each selection (selectedItem.Text) to a list of strings.</p>
  
  <p>so far what I was working on is something like ..</p>
  
  <pre><code>selectedItem = new List&lt;string&gt;();
   var value = lstpdfList.SelectedItem.Text;
   for (int i = 0; i &lt; lstpdfList.SelectedValue.Count(); i++)
   {
    selectedItem.Add(value);
   }
  </code></pre>
  
  <p>I would really appreciate any advice.</p>