I have a copule of MVC apps. I'd like to be able to redirect from one to another? Do I just post to the specific app I'm trying to hit? Is there a way to Html.RedirectToAction on a different app?
A:
you can use RedirectResult:
public ActionResult SomeAction()
{
// do stuff...
return Redirect("http://myurl.com");
}
free-dom
2009-08-26 04:30:49
+2
A:
What's stopping you from doing the following inside your action?
return Redirect("http://www.otherapp.com/product/category");
If you don't want to hard code the http://www.otherapp.com then you could put a configuration setting inside your web.config file for it...?
Charlino
2009-08-26 04:33:52