title: Can I do a AcceptVerbs(HttpVerbs.Get/Post) and hijaxing on the same page MVC?
body: <p>I am working with Hijaxing and I will have three buttons, Prev, Add, and Next.  The hijaxing works with both the Add, and the Next button.  </p>
  
  <p>Prev button is set to 'onclick="history.back(-1)" '.<br>
  Add button is triggered by a '(Html.BeginForm("Add","Home"))' form with hijacking Jquery, which works fine.<br>
  Next button does does the same as the Add button.  I would like the Next button to hit the [AcceptVerbs(HttpVerbs.Post)] in the Controller.   Any suggestions?                                        </p>
  
  <p>CONTROLLER...</p>
  
  <pre><code>    [AcceptVerbs(HttpVerbs.Get)]
      public ActionResult Index()
      {
          return View();
      }
  
      [AcceptVerbs(HttpVerbs.Post)]
      public ActionResult Index(string home)
      {
          return RedirectToAction("Index", "Home");
      }
  
      public string GetQuote(Index index)
      {
          if (isNullorEmpty(index.name) != "")
              return "99";
          else
              return "Sorry";
      }
  </code></pre>
  
  <p>ASPX...</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      $(document).ready(function() {
          $("form[action$='GetQuote']").submit(function() {
              $.post($(this).attr("action"), $(this).serialize(), function(response) {
                  $("#results").html(response);
              });
              return false;   
          });
      });    
  &lt;/script&gt;
  
      &lt;%using (Html.BeginForm("GetQuote", "Stocks")) {%&gt;
      &lt;br /&gt;        
      &lt;span id="results"&gt;&lt;/span&gt;
      &lt;br /&gt;
      &lt;input id="txtSymbolName" name="name" type="text" /&gt;
      &lt;br /&gt;        
      &lt;input type="button" name="getPrev" value="Prev" onclick="history.back(-1)" /&gt;
      &lt;input type="submit" value="Add" /&gt;          
      &lt;input type="submit" name="home" value="Next" /&gt;
      &lt;% } %&gt;
  </code></pre>