JavaScriptRedirectResult

This action result will perform a redirect using javascript (window.location = url)

parameter:
  • url : target url

        [HttpGet]
        public ActionResult Contact()
        {
            ViewBag.Message = "Your contact page.";
            return new JavaScriptRedirectResult("~/Home");
        }

Last edited Jun 12, 2013 at 12:16 PM by jefflequeux, version 2

Comments

No comments yet.