I’m using Model-View-Presenter framework. When Loading a page, I’m having trouble setting the selected item that came from the Database.
In view, I know I need:
protected void ddlStatus_SelectedIndexChanged(object sender, EventArgs e)
{
presenter.DdlStatusSelectedIndexChanged();
// what should this pass?
}
Then in Presenter:
public void DdlStatusSelectedIndexChanged()
{
view.DdlStatus = ???
// Should I pass the SelectedIndex?
}
I also think that part of my problem is that DdlStatus I have as a List.
Interface:
List<StatusDTO> DdlStatus { set; get; }
Does anybody have some simple examples of this?
The best I found is here (but needs formatted!) —>
http://codebetter.com/blogs/jeremy.miller/archive/2006/02/01/137457.aspx
Thanks!
I figured this out. It’s a bit of a cheese but …