0

I'm trying to populate a dropdown list with a list returned by a query to my object's facade. I've seen a couple examples here but nothing close enough to my use case. Seems like:

<%= Html.DropDownList("User.Affiliate", UserFacade.Instance.SelectAffiliates())%>

should work but doesn't.

justSteve
  • 5,444
  • 19
  • 72
  • 137

1 Answers1

1

Try using

<%= Html.DropDownList("User.Affiliate", 
    new SelectList(UserFacade.Instance.SelectAffiliates()))%>
Alexander Prokofyev
  • 33,874
  • 33
  • 95
  • 118