Click here to Skip to main content
15,896,367 members

Comments by wdomains (Top 1 by date)

wdomains 27-Feb-22 19:30pm View    
Great answer but I'm having trouble getting it to work.

It errors on this line
@Html.DropDownListFor(model => model.CountryID

with this error below - any idea what I am doing wrong? I do have a property definition for CountryID

CS1061: 'IEnumerable<documentlistmodel>' does not contain a definition for 'CountryID' and no accessible extension method 'CountryID' accepting a first argument of type 'IEnumerable<documentlistmodel>' could be found