title: ASP.Net MVC Client Side and Server Side Calculations
body: <p>I am new to ASP.Net MVC and am trying to maintain the correct use of the MVC development pattern. I am getting a bit lost in the mix with all the different technologies at play.</p>
  
  <p>Basically I have form that is strongly typed against a model. For simplicity sake lets say the model has three ints in it. Int1, Int2 and Total. I want to create a form that allows the user to enter values in Int1 and Int2 and then immediately update the Total field that is displayed to the user whenever either one of them changes. I then want to allow the user to hit save if they are happy with the total and HTTP Post back to the controller all three fields to be saved to a database.</p>
  
  <p>Now I went down the path of using Jquery OnChange() to do the calculations and set the value of the total which works. However, I feel as though I am getting away from true MVC here as I am doing calculations within my view.</p>
  
  <p>How would things like Knockout and JSON play in here? I want to stay to the best practices of MVC as much as possible.</p>