Can someone please show me how to get a couple of dynamic select fields into the MVC Register Form that comes with Visual Studio 2013 MVC project?
I have modified the AspNetUsers table to include TitleId and SexId, I have also modified the registration form with just 2 extra fields:
@Html.TextBoxFor(m => m.TitleId, new { @placeholder = "Title *", @type = "number" })
@Html.TextBoxFor(m => m.SexId, new { @placeholder = "Sex *", @type = "number" })
The form works but I need TitleId and SexId to be Select fields with data from the respective Title and Sex tables.
Any help would be much appreciated.