I'm working on an intranet site, specifically on a Weekly Monitoring tool for employees. What I need is to fill a DropDownList
with weeks, example week:
Week : From 12/10/15 to 18/10/15
I'm able to filter on another page but with years and month:
CalendarController c = new CalendarController();
ViewBag.ListYears = c.ListYears(iyear);
ViewBag.ListMonths = c.ListMonths(imonth);
ViewBag.ListDaysOfMonth = _service.ListDaysOfMonth(iyear.ToString(), imonth.ToString());
And use forms to save them.
How do I fill my DDList with a list of, let's say, all the weeks in 2015?