Which action result type would be best to use if you want to navigate the user to a different URL from the controller?

  • ViewResult
  • JsonResult
  • PartialViewResult
  • RedirectToActionResult
If you want to navigate the user to a different URL from the controller, the best action result type to use is RedirectToActionResult. It issues an HTTP redirect to another action within the same or a different controller, allowing you to redirect the user to a different page or route.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *