I want to take the selected date from the calendar control and pass to the argument.
- 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);
- }
This procedure starts after a change of the selected dates in the Calendar1 control.
Parameter 'e' does not have not property Start.
How can I get the Start from the Calendar Object
Peter ThopsonPosted Dec 16, 2020, 3:45 PM
Sachin SinghPosted Dec 16, 2020, 6:52 AM
Mageshwaran RPosted Dec 16, 2020, 6:31 AM