2012-05-22 67 views

回答

0

從像

enteries.Where(a => a.startdate < FirstDate && a => a.enddate < SecondDate ).ToList() 

,然後這兩個日期之間的條目您控制器返回列表通過這些條目DropDownListFor像

@Html.DropDownListFor(model => model.entryID, 
    new SelectList(model.entries, "ID", "Title")) 
相關問題