我正在Sharepoint中制作预订应用程序,并希望禁用已预订的日历上的日期。我已经开始并被困在这里。
DateTime dateStart = DateTime.Parse(radSP["StartDatum"].ToString());
DateTime dateEnd = DateTime.Parse(radSP["StartDatum"].ToString());
while (dateStart < dateEnd)
{
Calendar2.SelectedDate = dateStart;
Calendar2.SelectedDate.Day.IsSelectable = false;
dateStart.AddDays(1);
e.Day.IsSelectable = false; //dont have acces on "e"
e.Cell.ForeColor = System.Drawing.Color.Gray; //dont have acces on "e"
}
我的日期存储在Sharepoint的列表中