开发者

Navigating from view to view in mvc2

开发者 https://www.devze.com 2023-03-28 19:27 出处:网络
Is it possible to navigate directly from a view to another view without having to go down to the 开发者_运维技巧controller level?If by \"navigate\" you mean to render one view in another, you can use

Is it possible to navigate directly from a view to another view without having to go down to the 开发者_运维技巧controller level?


If by "navigate" you mean to render one view in another, you can use Html.RenderPartial. If you mean creating a link with a URL that will invoke some other view directly when it is clicked, no: it would break the "C" part of MVC.

0

精彩评论

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