title: asp.net mvc submit doesnt hit actionresult method
body: <p>would you mind to help me and say what I am doing wrong? I cannot spot the error and consequently after clicking the submit button, the HttpPost ActionResult method is not being hit?</p>
  
  <p>Controller</p>
  
  <pre><code>public ActionResult Index()
  {
      return View();
  }
  
  [HttpPost]
  public ActionResult Index(testModel model)
  {
      if (ModelState.IsValid == true)
      {
          using (testRepository repository = new testRepository())
          {
  
          }
      }
      return View();
  }   
  </code></pre>
  
  <p>And the View</p>
  
  <pre><code>@using (Html.BeginForm("Index", "Test", FormMethod.Post, new {autocomplete="off" }))
  {
      &lt;fieldset&gt;     
          @Html.LabelFor(m =&gt; m.testValue)
          @Html.TextBoxFor(m =&gt; m.testValue)
          &lt;input type="submit" value="Submit" /&gt;
      &lt;/fieldset&gt;
  }
  </code></pre>