0

ParentView に 2 つの部分ビューがあり、次のように部分ビューを読み込んでいます。

Html.RenderAction("Action1WithChildView1")
Html.RenderAction("Action2WithChildView2")

各子ビューには、独自のフォームと送信ボタンがあります。

if child1 submitted to an 
    public RedirectToRouteResult Child1ActionPost() {
    Check for model state and add some model errors,Then
    RedirectToAction(ParentActionReturingMainview);
    }

if child2 submitted to an 
    public RedirectToRouteResult Child2ActionPost() {
    Check for model state and add some model errors,Then
    RedirectToAction(ParentActionReturingMainview);
    }

各子ビューに検証の概要がありますが、子ビューに関連付けられたモデル エラーが表示されません。

4

0 に答える 0