我在一个 Intranet 网站上工作,特别是为员工开发每周监控工具。我需要的是DropDownList
用几周填充一个,例如一周:
Week : From 12/10/15 to 18/10/15
我可以在另一个页面上过滤,但有年份和月份:
CalendarController c = new CalendarController();
ViewBag.ListYears = c.ListYears(iyear);
ViewBag.ListMonths = c.ListMonths(imonth);
ViewBag.ListDaysOfMonth = _service.ListDaysOfMonth(iyear.ToString(), imonth.ToString());
并使用表格来保存它们。
如何用 2015 年所有周的列表填充我的 DDList?