Pl help me to sort out the following issue..
In the View,
<select asp-for="Frequency" [email protected] class="form-control" />
and in Controller,
SelectListItem[] items = { new SelectListItem() { Text = "item 1", Value= "Nrk" },
new SelectListItem() { Text = "item 2", Value= "Nrk 2" }
};
ViewBag.Freqs = items;
return View();
But I am not getting the list in the drop down box.
After two days, I found the problem.. the following is worked
Instead of
@Matt DeKrey, thanks for pointing the tag issue... I will edit my post as u mentioned.