title: How to get button value to controller?
body: <p>I have view and it has two button which are 'Yes' and 'No'.
  If I click 'Yes' redirect one page and if I click 'No' redirect to another page. </p>
  
  <p>This is my view.</p>
  
  <pre><code>@using (Html.BeginForm())
   { 
  &lt;table  &gt;
   &lt;tr&gt;
      &lt;td &gt;
        Ceremony : 
      &lt;/td&gt;
      &lt;td&gt;
         Ceremony at @Model.ceremony_date
  
      &lt;/td&gt;
  &lt;/tr&gt;
  
    &lt;tr&gt;
              &lt;td &gt;
                Name :
              &lt;/td&gt;
              &lt;td &gt;
                 @Model.first_name  @Model.middle_name  @Model.last_name
              &lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
           &lt;td colspan="2" &gt;
              @Html.Partial("_DegreeDetailsByGraduand", @Model.DegreeList)
           &lt;/td&gt;
          &lt;/tr&gt;
  
          &lt;tr&gt;
          &lt;td colspan="2" &gt;
          IS information is correct ?
          &lt;/tr&gt;
          &lt;tr&gt;
          &lt;td&gt;
           &lt;input type="submit" id="btndegreeconfirmYes" name="btnsearch" class="searchbutton"  value="Yes" /&gt;    
           &lt;/td&gt;  &lt;td&gt;
            &lt;input type="submit" id="btndegreeconfirmNo" name="btnsearch" class="searchbutton"  value="No" /&gt;&lt;/td&gt;  
          &lt;/tr&gt;
  &lt;/table&gt;
  
  
   }
  </code></pre>
  
  <p>This is my controller</p>
  
  <pre><code>[HttpPost]
  
          public ActionResult CheckData()
          {
  
              return RedirectToRoute("detailform");
          }
  </code></pre>
  
  <p>I don't know how to get the button value in controller.
  How can I do it.</p>