Fix: ASP.NET Core <select> control is empty

December 13, 2017
Cover Image

I found a nifty little quirk in ASP.NET Core recently where the control in your ASP.NET cshtml view, bind that control to a Model class with data, and then what shows up in the browser is an empty control.

It turns out that it's just a minor difference in how the control is written in the HTML/XML of the view.  It's the difference between using "" and "