title: Redirect to action not working correctly in my controller in ASP.Net MVC
body: <p>I'm not sure if I'm doing something wrong here.</p>
  
  <p>I have a .get() in javascript that calls my controller and in the controllers action I want to redirect to another action. The problem is the redirect enters "Events" but doesn't load the page/view and I get a error coming back from the get call. I'm following advice from this SO thread <a href="https://stackoverflow.com/questions/129335/how-do-you-redirect-to-a-page-using-the-post-verb">here</a> by Jason Bunting. The error from the .get says </p>
  
  <blockquote>
    <p>The view 'JumbotronSearch' or its master was not found or no view engine supports the searched locations. The following locations were searched:<br>~/Views/Home/JumbotronSearch.aspx<br>~/Views/Home/JumbotronSearch.ascx<br>~/Views/Shared/JumbotronSearch.aspx<br>~/Views/Shared/JumbotronSearch.ascx<br>~/Views/Home/JumbotronSearch.cshtml<br>~/Views/Home/JumbotronSearch.vbhtml<br>~/Views/Shared/JumbotronSearch.cshtml<br>~/Views/Shared/JumbotronSearch.vbhtml</p>
  </blockquote>
  
  <p>Here is the javascript</p>
  
  <pre class="lang-js prettyprint-override"><code>$.get(scope.enumControllers.jumbotronSearch, model, function(result) {
    if (result.error == true) {
      yb.base.displayNotification(result.message, 'danger');
    }
  }).fail(function(jqXHR, textStatus) {
    yb.base.displayNotification("Oh no! Something went wrong sending your request. Please contact the  help desk.", 'danger');
  });
  </code></pre>
  
  <p>Here is my controller code</p>
  
  <pre><code>    [AcceptVerbs(HttpVerbs.Get)]
      [AllowAnonymous]
      public ActionResult JumbotronSearch(SearchCriteria searchCriteria)
      {
          return RedirectToAction("Events", new { searchCriteria = searchCriteria });
      }
  
      [AcceptVerbs(HttpVerbs.Get)]
      [AllowAnonymous]
      public ActionResult Events(SearchCriteria searchCriteria)
      {
          try
          {
              var viewModel = new EventsViewModel();
              //do some work here
  
              return View(viewModel);
          }
          catch (Exception ex)
          {
              // log exception in file or db or both
              return Json(new { error = "true", message = "Oh No! Something happened trying to submit your search. Please contact Help Desk." });
          }
      }
  </code></pre>