title: identify which button is being clicked in mvc 5
body: <p>I am creating a web app using mvc 5 here i have two buttons                </p>
  
  <pre><code>&lt;div class="row"&gt;
      &lt;div class="col-sm-offset-5 col-sm-1"&gt;
          &lt;input type="submit" name="save" value="SAVE" class="btn btn-primary glyphicon glyphicon-save" /&gt;
      &lt;/div&gt;
      &lt;div class="col-sm-offset-0 col-sm-1"&gt;
  
              &lt;input type="submit" name="reset" id="reset" value="Reset" class="btn btn-warning active glyphicon glyphicon-refresh" /&gt;
      &lt;/div&gt;                        
  &lt;/div&gt;
  </code></pre>
  
  <p>and i have a method which is being called after button click,</p>
  
  <p>now on that event i want to differentiate the button click,</p>
  
  <p>like,</p>
  
  <p>if a user click </p>
  
  <pre><code>&lt;input type="submit" name="save" value="SAVE" class="btn btn-primary glyphicon glyphicon-save" /&gt;
  </code></pre>
  
  <p>then </p>
  
  <pre><code>{
  //this code should run
  }
  </code></pre>
  
  <p>and if a user clicks</p>
  
  <pre><code>&lt;input type="submit" name="reset" id="reset" value="Reset" class="btn btn-warning active glyphicon glyphicon-refresh" /&gt;
  </code></pre>
  
  <p>then</p>
  
  <pre><code>{ //this set of code should run }
  </code></pre>
  
  <p>and my method looks like this</p>
  
  <pre><code>[HttpPost]
          public ActionResult insertrecd(FormCollection fc)
          { 
              if(fc["reset"]==null)
              {
                  return RedirectToAction("party", "party");
              }
              else
              {
                  ViewBag.message = string.Format("Hello {0}.\\nCurrent Date and Time: {1}", "name", DateTime.Now.ToString());
                  return RedirectToAction("party", "party");
              }
          }
  </code></pre>
  
  <p>what i need to do, i want to do different code on different button clicks?</p>