A parent view is a view that contains calls to action methods that return child views.
父视图是包含了调用返回子视图的动作方法的视图。
Notice that in the controller, there is no specific way to render a parent view or a child view.
注意在控制器中,没有特定的方法呈现父视图或子视图。
You can call the same action method from multiple places in the parent view and pass it parameters to specify what is rendered.
你可以在父视图的不同位置调用相同的动作方法,通过参数传递决定要呈现什么。
To call the action method and render the child view from the parent view, you can use either the action helper method or RenderAction helper method as shown in the following example.
为了调用动作方法在父视图中呈现子视图,你可以像下面的示例一样使用Action辅助方法或RenderAction辅助方法。
Invokes the specified child action method and renders the result inline in the parent view.
调用指定子操作方法并在父视图中以内联方式呈现结果。
The parent view contains the child views, and likewise, the parent PM contains the child PMs.
父视图容器包含子视图,与之对应,父pm也包含子PM。
Represents support for calling child action methods and rendering the result inline in a parent view.
表示对调用子操作方法并在父视图中以内联方式呈现结果的支持。
Invokes the specified child action method using the specified parameters and renders the result inline in the parent view.
使用指定参数调用指定子操作方法,并在父视图中以内联方式呈现结果。
Invokes the specified child action method using the specified controller name and renders the result inline in the parent view.
使用指定控制器名称调用指定子操作方法,并在父视图中以内联方式呈现结果。
Local variables passed (or generated) take precedence, however locals passed to the parent view are available in the child view as well.
传入(或生成)的本地变量优先,但传入父视图的本地变量在子视图仍有效。
Invokes the specified child action method using the specified parameters and controller name and renders the result inline in the parent view.
使用指定参数和控制器名称调用指定子操作方法,并在父视图中以内联方式呈现结果。
Invokes the specified child action method using the specified parameters and controller name and renders the result inline in the parent view.
使用指定参数和控制器名称调用指定子操作方法,并在父视图中以内联方式呈现结果。
应用推荐