How to get a property value from database based on cascaded drop down list selected values??

后端 未结 2 1261
星月不相逢
星月不相逢 2021-01-28 05:31

I want to get a property of an entity based on passing id\'s of selected items from cascaded dropdown list...On every change in level 1 or in level 2 of cascaded

2条回答
  •  既然无缘
    2021-01-28 06:20

    I have implemented successfully in this way.

    @using (Html.BeginForm("PriceCalculatorIndex", "PriceCalculator", FormMethod.Post,
                                          new { enctype = "multipart/form-data" }))
    {
    
        
    @Html.LabelFor(m => m.SelectedLeague, new { @class = "control-lebel" }) @Html.DropDownListFor(m => m.SelectedLeague, Model.LeagueList, new { @class = "form-control" }) @Html.ValidationMessageFor(m => m.SelectedLeague)
    @Html.LabelFor(m => m.SelectedLeagueDivision, new { @class = "control-lebel" }) @Html.DropDownListFor(m => m.SelectedLeagueDivision, Model.LeagueDivisionList, new { @class = "form-control" }) @Html.ValidationMessageFor(m => m.SelectedLeagueDivision)
    }

提交回复
热议问题