TheCommunicator
asked on
Loading another controller's view using MVC
Hi All,
I want to load another controller's view using MVC. I do it using something ike  return View(~/view/Controller/act ion);
Now this is a stringly typed view and I am using aspx pages to do that. When it loads, it says that Model is Null. How can I do this?
I want to load another controller's view using MVC. I do it using something ike  return View(~/view/Controller/act
Now this is a stringly typed view and I am using aspx pages to do that. When it loads, it says that Model is Null. How can I do this?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi Guys,
Instead of doing that you have suggeste, i ended up doing something like below:
That actually seemed to me like a simple solution.
Instead of doing that you have suggeste, i ended up doing something like below:
return View("~/,,,", Model)
That actually seemed to me like a simple solution.
ASKER