禁用Sharepoint中日期之间的日历日期

时间:2017-03-28 11:18:47

标签: c# sharepoint calendar

我正在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的列表中

0 个答案:

没有答案