Calendar1_SelectionChanged 事件处理程序出现错误
I am getting an error with Calendar1_SelectionChanged Event Handler
我想从日历控件中获取选定的日期并传递给参数。
EventArgs 不包含 Start
的定义
protected void Calendar1_SelectionChanged(object sender, System.EventArgs e)
{
_availebletimeSlotsRoom1 = new BindingList<string>(_allTimeSlots.ToList());
_availebletimeSlotsRoom2 = new BindingList<string>(_allTimeSlots.ToList());
_availebletimeSlotsRoom3 = new BindingList<string>(_allTimeSlots.ToList());
_availebletimeSlotsRoom4 = new BindingList<string>(_allTimeSlots.ToList());
DLAvailTS1.DataSource = _availebletimeSlotsRoom1;
DLAvailTS2.DataSource = _availebletimeSlotsRoom2;
DLAvailTS3.DataSource = _availebletimeSlotsRoom3;
DLAvailTS4.DataSource = _availebletimeSlotsRoom4;
UpdateRoom(1, e.Start, _availebletimeSlotsRoom1); //ERROR HERE:'EventArgs' does not
contain a definition for 'Start' and no extension method 'Start' accepting a first
argument of type 'EventArgs' could be found (are you missing a using directive or an
assembly reference?)
UpdateRoom(2, e.Start, _availebletimeSlotsRoom2);
UpdateRoom(3, e.Start, _availebletimeSlotsRoom3);
UpdateRoom(4, e.Start, _availebletimeSlotsRoom4);
}
此过程在 Calendar1 控件中的选定日期发生一些更改后开始。参数 'e' 尚未 属性 启动。您从 Calendar1 控件的 属性 读取开始日期。
Calendar1 是否控制 class MonthCalendar?然后使用 属性 SelectionStart 中的值。
示例:
UpdateRoom(1, Calendar1.SelectionStart, _availebletimeSlotsRoom1);
我想从日历控件中获取选定的日期并传递给参数。
EventArgs 不包含 Start
的定义 protected void Calendar1_SelectionChanged(object sender, System.EventArgs e)
{
_availebletimeSlotsRoom1 = new BindingList<string>(_allTimeSlots.ToList());
_availebletimeSlotsRoom2 = new BindingList<string>(_allTimeSlots.ToList());
_availebletimeSlotsRoom3 = new BindingList<string>(_allTimeSlots.ToList());
_availebletimeSlotsRoom4 = new BindingList<string>(_allTimeSlots.ToList());
DLAvailTS1.DataSource = _availebletimeSlotsRoom1;
DLAvailTS2.DataSource = _availebletimeSlotsRoom2;
DLAvailTS3.DataSource = _availebletimeSlotsRoom3;
DLAvailTS4.DataSource = _availebletimeSlotsRoom4;
UpdateRoom(1, e.Start, _availebletimeSlotsRoom1); //ERROR HERE:'EventArgs' does not
contain a definition for 'Start' and no extension method 'Start' accepting a first
argument of type 'EventArgs' could be found (are you missing a using directive or an
assembly reference?)
UpdateRoom(2, e.Start, _availebletimeSlotsRoom2);
UpdateRoom(3, e.Start, _availebletimeSlotsRoom3);
UpdateRoom(4, e.Start, _availebletimeSlotsRoom4);
}
此过程在 Calendar1 控件中的选定日期发生一些更改后开始。参数 'e' 尚未 属性 启动。您从 Calendar1 控件的 属性 读取开始日期。 Calendar1 是否控制 class MonthCalendar?然后使用 属性 SelectionStart 中的值。 示例:
UpdateRoom(1, Calendar1.SelectionStart, _availebletimeSlotsRoom1);