title: how to get multiple values from text-box in asp.net
body: <p>I have text-box that contain multiple names that are separated by comma.  I want to get each name from the text-box and insert into database.  How can i do this?
  Names in the text-box are like this:</p>
  
  <pre><code>Mike Drew, Andy Moore, John Edward and so on...
  </code></pre>
  
  <p>asp textbox:</p>
  
  <pre><code> &lt;asp:TextBox ID="txtSearch" runat="server" CssClass="form-control" &gt;&lt;/asp:TextBox&gt;
  
  &lt;asp:HiddenField ID="hfUID" runat="server" /&gt;
  &lt;asp:Button ID="Button1" Text="Submit" runat="server" OnClick="Submit" /&gt;
  </code></pre>
  
  <p>code behind</p>
  
  <pre><code> protected void Submit(object sender, EventArgs e)
          {
              string customerName = Request.Form[txtSearch.UniqueID];
              string UID = Request.Form[hfUID.UniqueID];
              ClientScript.RegisterStartupScript(this.GetType(), "alert", "alert('Name: " + customerName + "\\nID: " + UID + "');", true);
          }
  </code></pre>