Display a view from another controller in ASP.NET MVC

来源:互联网 发布:实时监测网速软件 编辑:程序博客网 时间:2024/05/18 02:34

http://stackoverflow.com/questions/879852/display-a-view-from-another-controller-in-asp-net-mvc

You can use:

return View("../Category/NotFound", model);

It was tested in ASP.NET MVC 3, but should also work in ASP.NET MVC 2.


0 0
原创粉丝点击