Need help here.
So I have this
@Html.DropDownListFor(m => m.Nationality, new SelectList(Model.NationalityList.Select(s => s.NationalityName)), "-- Please Select --")
Which shows the list of Nationality. I am just wondering how do I generate a table based on the selection nationality.
So for example I have something like
@if (Model.Nationality == "Japan")
{
Shows the code here for example another table
}
In ASP.NET Webform, when we select the DropDownlist, we can do autopostback and then generate the form below. How to do it in MVC Core?
Thanks