title: Converting button events etc to ASP.NET MVC
body: <p>Given an asp.net webform page which does something like</p>
  
  <p>asp.net</p>
  
  <pre><code> &lt;asp:textbox id="txtA" runat="server" /&gt;
   &lt;asp:textbox id="txtB" runat="server" /&gt;
   &lt;asp:button id="btnAddTogether" runat="server" text="Go" onclick="btn_Click"/&gt;
  
   &lt;asp:textbox id="txtResult" runat="server" /&gt;
  </code></pre>
  
  <p>code behind</p>
  
  <pre><code>protected void btn_Click(...)
  {
      txtResult.Text = txtA.Text + txtB.Text;
  }
  </code></pre>
  
  <p>How would I convert this to ASP.NET MVC. It's a pretty trivial example, but I'm not sure about how to change my way of thinking.</p>