title: How to show please wait message on form post in MVC 5 till the controller returns view
body: <p>In MVC 5.2.2,I need to process data by sending the values from form to web-service.While doing so it takes some time to get the status from web service and return to new view .In the mean time i need to show please wait in order to prevent the user from repeated submissions.</p>
  
  <pre><code>public ActionResult PopulateHistory(HistoryModel history)
  {
      try
      {
        string policyNumber = history.product.Split(',')[0];
        string productCode = history.product.Split(',')[1];
        string startDate = code;
        string endDate = (DateTime.UtcNow).ToString("yyyy-MM-dd");
        Container historyContainer =_History.CreateBusinessObject_History
        (policyNumber,productCode,endDate,startDate);
        //Getting history from webservice
        DataTable historyGridview =_History.GethistoryValues
        (historyContainer);
        return View(historyGridview);
     }
      catch (Exception ex)
      {
        SemanticLogger.Log.Error(ex.ToString());
        return View(ex.ToString());
      }
  }
  </code></pre>