November Happy Hour will be moved to Thursday December 5th.

How to navigate from one pagecontroller to another pagecontroller

Vote:
 

Hi,

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.

Regards,

Rajjames

#117248
Feb 16, 2015 8:26
Vote:
 

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.

Patrick

#117251
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.