title: MVC 5 button click event that updates a label on the same form
body: <p>Using MVC 5, is it possible to have a button click event that updates a label on the same page?</p>
  
  <p>For example, if I have a structure</p>
  
  <pre><code>@using (Html.BeginForm()) {
      &lt;fieldset&gt;
          &lt;legend&gt;Form&lt;/legend&gt;
          &lt;p&gt;
              @Html.TextBox("textbox1")
          &lt;/p&gt;
          &lt;p&gt;
              @Html.Label("label1")
          &lt;/p&gt;
          &lt;p&gt;
              &lt;input type="submit" value="Submit" /&gt;
          &lt;/p&gt;
      &lt;/fieldset&gt;
  }
  </code></pre>
  
  <p>Clicking the <code>Submit</code> button grabs the <code>textbox1</code>'s value, modifies it according to the function that gets called when the submit button is clicked and then update the value of the label as the result?</p>
  
  <p>Assuming my controller is called <code>TestController.cs</code> and this is all done on the <code>Index</code> page</p>
  
  <p>I noticed some <a href="https://stackoverflow.com/questions/19007827/process-result-and-display-in-same-page-asp-net-mvc">suggestions</a> include using AJAX (new to me)</p>