Try our conversational search powered by Generative AI!

How to navigate from one pagecontroller to another pagecontroller



I have created a Pagecontroller where user can register and after registering successfully, he has to navigate to another pageController called dashboard. Can some one explain me how to do this in MVC.

Thanks in advance.



Feb 16, 2015 8:26

Hi Rajjames,

You could try this:

return RedirectToAction("Index", "Controller", new { node = new ContentReference(47) });

The first parameter is the action you would like to call, then the controller. The last parameter is the object you would like to passed to the action. Normally you should pass the ContentReference that belongs to the page.


Feb 16, 2015 8:52
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.