title: ASP.NET MVC2 Application's submit button returns URL with an appended "Form"
body: <p>OK, I'm sorry if the tile of the question was unclear, and if you understand what I mean, please don't hesitate to help me think of a better one.</p>
  
  <p>Anyway, I have a <code>&lt;input type="submit"&gt;</code> element for my form, and I want it to return the same URL as the URL of the page the element is on.</p>
  
  <p>Currently, if I click the button, it takes me from <code>/Calculate/Quadratic</code> to <code>/Calculate/QuadraticForm</code></p>
  
  <p>In my controller for this view, I have the following code:</p>
  
  <pre><code>    [AcceptVerbs(HttpVerbs.Get)]
      public ViewResult Quadratic()
      {
          ViewData["Root1"] = "";
          ViewData["Root2"] = "";
          return View();
      }
  
      [AcceptVerbs(HttpVerbs.Post)]
      public ViewResult Quadratic(QuadCalc boss)
      {
          ViewData["Root1"] = x1;
          ViewData["Root2"] = x2;
          return View();
      }
  </code></pre>
  
  <p>And here is the markup and code for my Quadratic view page, which includes the form which includes the submit button I've been referring to:</p>
  
  <pre><code>&lt;asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"&gt;
      &lt;h2&gt;Quadratic&lt;/h2&gt;
  
      &lt;% using(Html.BeginForm("QuadraticForm", "Calculate")) %&gt;
      &lt;% { %&gt;
      &lt;div&gt;
          a: &lt;%= Html.TextBox("quadraticAValue") %&gt;
          &lt;br /&gt;
          b: &lt;%= Html.TextBox("quadraticBValue") %&gt;
          &lt;br /&gt;
          c: &lt;%= Html.TextBox("quadraticCValue") %&gt;
          &lt;br /&gt;
          &lt;input type="submit" id="quadraticSubmitButton" value="Calculate!" /&gt;
          &lt;br /&gt;
          &lt;p&gt;&lt;%= ViewData["Root1"] %&gt;&lt;/p&gt;
          &lt;p&gt;&lt;%= ViewData["Root2"] %&gt;&lt;/p&gt;
      &lt;/div&gt;
      &lt;% } %&gt;
  &lt;/asp:Content&gt;
  </code></pre>
  
  <p>Therefore, all I really want is to have the submit button return the same page, but the HTTP post will aid the application in passing new ViewData.  Unless I'm interpreting this all wrong.</p>