title: jQuery Reload current page after return from MVC Controller Action called from jQuery
body: <p>I have some code in Global.asax that I need executed after a jQuery call to a Controller Action that performs some logic. I need to reload the current page (whatever that page is) after the Controller Action returns.</p>
  
  <p><strong>jQuery call to Controller Action</strong></p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      $(function () {
          $('#SelectedLanguage').on('change', function () {
              var culture = $(this).val();
              $('#test').load("/Account/TestPartial/" + culture);
              //location.reload(true);
              return false;
          });
      });
  &lt;/script&gt;
  </code></pre>
  
  <p><strong>Controller Action /Account/TestPartial</strong></p>
  
  <pre><code>[AllowAnonymous]
  public ActionResult TestPartial(string id)
  {
      SetLanguage(id);
  
      var model = new LanguageListPartialViewModel();
  
      model.Languages = GetLanguageList();
      model.SelectedLanguage = id;
  
      return View(model);
  }
  </code></pre>
  
  <p>I tried <code>location.reload(true);</code> but it reloads immediately. I need to wait until the Controller Action returns. Tried to implement <code>await</code> in the Controller Action, but I guess I'm not sure how to code that since none of the called routines inside of TestPartial return anything compatible with <code>await</code>.</p>
  
  <p>jQuery .get() seems to be an option? Does these mean I would have to convert the jQuery calling parameter to JSON and also code the Controller Action for JSON, or is there a way to make the call as-is using .get()?</p>