Can someone help me into this?
I am still new to MVC, now I've a controller named 'A' and called its view.
What I want to happen is that I want to redirect from A's view to another controller for example controller 'B'.
Is tha开发者_Python百科t possible to happen?
Please help.
Thanks
Jason
You can use the RedirectToAction method
MSDN example
public ActionResult LogOff() {
FormsAuth.SignOut();
return RedirectToAction("Index", "Home");
}
First parameter is the Action name and second is the controller name.
精彩评论