protected void FillBookingDataset() { DateTime firstDate = new DateTime(ASPxCalendar1.VisibleDate.Year, ASPxCalendar1.VisibleDate.Month, 1); DateTime lastDate = GetFirstDayOfNextMonth(); dsBooking = GetCurrentMonthData(firstDate, lastDate); } protected DateTime GetFirstDayOfNextMonth() { int monthNumber, yearNumber; if (ASPxCalendar1.VisibleDate.Month == 12) { monthNumber = 1; yearNumber = ASPxCalendar1.VisibleDate.Year + 1; } else { monthNumber = ASPxCalendar1.VisibleDate.Month + 1; yearNumber = ASPxCalendar1.VisibleDate.Year; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)