Here Mudassar Ahmed Khan has explained with an example, how to populate DropDownList inside Razor Pages in ASP.Net Core MVC.
Inside the Razor Page, the DropDownList will be created using SELECT Tag Helper and will be populated from Database using SelectList Model class in ASP.Net Core MVC.
↧