开发者

Loading another controller's view using MVC

I want to load another cont开发者_运维百科roller's view using MVC. I do it using something ike return View(~/view/Controller/action);

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 think you're looking for this overload of View(). The version you're calling doesn't pass in the Model, resulting in and exception.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜