tags:

views:

45

answers:

1

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.

+1  A: 

Try using

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