title: Get a list of input
body: <p>This is the html: </p>
  
  <pre><code>&lt;input type="text" value="Google" name="Projects[0]" /&gt;
   &lt;input type="text" value="Microsoft" name="Projects[1]" /&gt;
   &lt;input type="text" value="Microsoft" name="Projects[2]" /&gt;
  </code></pre>
  
  <p>This also has an ASPX submit button. </p>
  
  <pre><code>&lt;asp:Button ID="submitBtn" Text="Save" runat="server" OnClick="SubmitButton_Click" /&gt;
  </code></pre>
  
  <p>--- C# -----------</p>
  
  <pre><code> protected void SubmitButton_Click(object sender, EventArgs e)
      {            
          List&lt;string&gt; projectsInCSharp = new List&lt;string&gt;();
          projectsInCSharp.Add(Request["Projects[0]"]); //Google
          projectsInCSharp.Add(Request["Projects[1]"]); //Microsoft
  
      }
  </code></pre>
  
  <p>Is there a better way to do this and bind it in a list automatically. For instance in ASP.NET MVC you can do this. However I am using WebForms and I can't switch to MVC for just this.</p>
  
  <p>I am using .NET 4.0, C#, ASPX.</p>