views:

316

answers:

2

I'm having trouble navigating to a different controller view from another controller action. e.g. return view("edit", "profile", profile);

I'm trying to navigate from the account controller to the edit view in the profile controller.

Any suggestions?

Thanks, -Mike

+6  A: 

Try this:

RedirectToAction("Edit", "Profile", new {id = 1, otherParam = "foo"});

This won't render view of another controller - but it will navigate to action of another controller (which is supposed to render view you are looking for).

Arnis L.
Oh.. I see! Thanks Arnis :-)
A: 

Arnis,

Worked great, thanks again. :-)

If it helped - accept it as an answer. And be so kind - don't post comments as answers. :)
Arnis L.