title: ASp.Net MVC Core 2. Does any button fires submit in a form?
body: <p>I want to know if this behaviour is correct:
  in a ASP.NET MVC Core 2 project i have a form with just one button. If i click on that button a submit of the form is fired. Is that correct? 
  An if it is, how can i use a button for other matters inside a form?</p>
  
  <pre><code>@using (Html.BeginForm())
  {    
     &lt;button&gt;OK&lt;/button&gt;    
     &lt;input type="submit" value="Submit" class="btn btn-primary" /&gt;
  }
  </code></pre>
  
  <p>The OK button does the same as the Input submit.</p>
  
  <p>Here is the controller action:</p>
  
  <pre><code>[Route("/profile")]
  [HttpPost]
  public IActionResult Edit(UserViewModel user)
  {
      if (!ModelState.IsValid)
      {
          user.UserTypes = UserType.GetUserTypes();
          return View(user);
      }
      return Content("OK");
  }
  </code></pre>