title: jQuery post and .NET MVC action - returning partial results to end user
body: <p>I have a question in regards to a concept that I haven't had a chance to encounter before, but I have been thinking about it for a long time and I wanted to see if it's doable in .NET MVC 5 using jQuery...</p>
  
  <p>So let's say we have an action  in controller which looks like this: </p>
  
  <pre><code>[ActionName("OurTestAction")]
  [HttpPost]
  public ActionResult OurTestAction()
  {
   Method1();
  //returning some sort of "signal" here to client side to notify that the method1 finished processing data.. ?
   Method2();
   Method3();
   return Json("Ok");
  }
  </code></pre>
  
  <p>Where the action was triggered like this:</p>
  
  <pre><code>$(document).ready(function(){
  $.post("/Controller/OurTestAction").done(function(response){
  // displaying the result here
  });
  }):
  </code></pre>
  
  <p>So the idea that I had with this piece of code is that I could be able to tell end user when was the Method1() called and ended it's life cycle. Once the Method1(); finishes what it was supposed to do, I'd like to be able to tell the end user in his browser something like this (via jQuery): Method1() finished processing the data , moving onto the method2();</p>
  
  <p>Is something like this doable with jQuery and .NET, and if so how?</p>
  
  <p>Can someone help me out ?</p>