title: Cancel button on MVC
body: <p>When the client click on Cancel (on <strong><em>ItemsOptions</em></strong>) he should go back to the previous page (<strong><em>Client</em></strong>):</p>
  
  <p>I added in the View <strong><em>ItemsOptions</em></strong>:</p>
  
  <pre><code>@using (Html.BeginForm("","", FormMethod.Post, new { @class = "form-group", role = "form" }))
  {
      &lt;div class="col-md-4"&gt;&lt;input id = "theCancel" class="cancel" type="submit" value="Cancel" /&gt;&lt;/div&gt;
  }
  </code></pre>
  
  <p>When the Button Cancel is hit the error Message :</p>
  
  <p><strong><em>The required anti-forgery form field "__RequestVerificationToken" is not present.</em></strong></p>
  
  <p>I added  in the controller </p>
  
  <pre><code>[ValidateAntiForgeryToken]
  public ActionResult ***Client***(OrderItems model)
  {
  }
  </code></pre>
  
  <p>and in the <strong><em>Client</em></strong> View</p>
  
  <pre><code>@using (Html.BeginForm("Client", "Home", FormMethod.Post, new { @class = "form-group", role = "form" }))
  {
      @Html.AntiForgeryToken();
  }
  </code></pre>
  
  <p>I tried another way:</p>
  
  <p>I added in the View <strong><em>ItemsOptions</em></strong>:</p>
  
  <pre><code> @using (Html.BeginForm("","", FormMethod.Post, new { @class = "form-group", role = "form" }))
   {
     &lt;div class="col-md-4"&gt;&lt;input class="btn btn-warning" type="submit" value="Cancel" name="action:Cancel" /&gt;&lt;/div&gt;
    }
  </code></pre>
  
  <p>the controller</p>
  
  <pre><code>[MultipleButton(Name = "action", Argument = "Cancel")]
  public ActionResult Cancel(OrderItems model)
  {
     return View("Client", model);
  }
  </code></pre>
  
  <p>How can I implement the cancel button in the MVC form,I want the user to go to the previous page.</p>
  
  <p>Thanks</p>