Support for ASP.NET DropDownList

Feb 22, 2012 at 6:51 PM
Edited Feb 22, 2012 at 6:53 PM


I'm currently trying to integrate my current ASP.NET solutions to this framework. Is there an example

that shows how to bind an ASP DropDownList to the ViewModel?  

I went through all the examples in the project but didn't have any luck.

In my current scenario the source of my DropDownList is a list in my ViewModel, but the

SelectedValue should point to a different property in my ViewModel. The problem is that if I bind my

SelectedValue property like this: 

SelectedValue='<%# sender.Bind("Model.BusinessActivity.SourceKey") %>'
I get this error:
'ddlBusinessActivity' has a SelectedValue which is invalid because it does not exist in the list of items.