开发者

Loading another controller's view using MVC

开发者 https://www.devze.com 2023-04-03 20:36 出处:网络
I want to load another cont开发者_运维百科roller\'s view using MVC. I do it using something ikereturn View(~/view/Controller/action);

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

精彩评论

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

关注公众号