title: asp.net get values from few textFields
body: <p>i have a problem to collect the values in my text fields .
  in each row on my screen i have a text field and the user should be add values there (you can see it from the picture)</p>
  
  <p><a href="https://i.stack.imgur.com/eTNQG.png" rel="nofollow noreferrer">exaple of my site</a></p>
  
  <p>this is my html code:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>@using (Html.BeginForm("Create", "User", FormMethod.Post))
  {
      @Html.AntiForgeryToken()
      &lt;table class="table"&gt;
          &lt;tr&gt;
              &lt;th&gt;
                  @Html.DisplayNameFor(model =&gt; model.BarCode)
              &lt;/th&gt;
              &lt;th&gt;
                  @Html.DisplayNameFor(model =&gt; model.Name)
              &lt;/th&gt;
              &lt;th&gt;
                  @Html.DisplayNameFor(model =&gt; model.Profit)
              &lt;/th&gt;
              &lt;th&gt;
                  Amount
              &lt;/th&gt;
          &lt;/tr&gt;
          @foreach (var item in Model)
          {
              &lt;tr&gt;
                  &lt;td&gt;
                      @Html.DisplayFor(modelItem =&gt; item.BarCode)
                  &lt;/td&gt;
                  &lt;td&gt;
                      @Html.DisplayFor(modelItem =&gt; item.Name)
                  &lt;/td&gt;
                  &lt;td&gt;
                      @Html.DisplayFor(modelItem =&gt; item.Profit)
                  &lt;/td&gt;
                  &lt;td&gt;
                      &lt;form action="/action_page.php"&gt;
                          Amount:
                          &lt;input type="text" id="amountTag" name="Amount" maxlength="2" placeholder="0" size="4" runat="server" /&gt;
                      &lt;/form&gt;
                  &lt;/td&gt;
              &lt;/tr&gt;
          }
          &lt;tr&gt;
              &lt;td&gt;&lt;input type="submit" value="Submit" class="btn btn-default" /&gt;&lt;/td&gt;
          &lt;/tr&gt;
  
      &lt;/table&gt;
  
  }</code></pre>
  </div>
  </div>
  
  and my code is</p>
  
  <pre><code>  // POST: User/Create
      [HttpPost]
      public ActionResult Create(FormCollection collection)
      {
          try
          {
  
              /*Update the Database*/
              // TODO: Add insert logic here
              string x = Request.Form["amountTag"];
              return RedirectToAction("Index");
          }
          catch
          {
              return View();
          }
      }
  </code></pre>
  
  <p>this code always get Null and i don't have idea why           </p>