Hi all
iam passing mulliple parameter values from controller to view through json .
all texbox and DDL values binding except Checkbox values
This is my problem .
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Amit KumarPosted Apr 19, 2017, 7:22 AM
Seshu BPosted Apr 19, 2017, 7:19 AM
This is my code
$.ajax({
type: "POST",
url: '@Url.Action("GetAdministratorDetails", "Admin")',
data: { AdministratorID: $('#AdministratorName').val() },
datatype: "json",
traditional: true,
success: function (data) {
$(MealEntertainmentCard).val(data.MealEntertainmentCard);
//alert('' + data.MealEntertainmentCard);
$(LivingExpensesCard).val(data.LivingExpensesCard);
//alert('' + data.LivingExpensesCard);
}
});
});
@Html.CheckBoxFor(m => m.MealEntertainmentCard, new { @class = "input-text chkb"})
Ramesh PalanivelPosted Apr 19, 2017, 6:38 AM