DayPilot Knowledge Base

AJAX Calendar/Scheduling Controls
DayPilot Pro (AJAX Calendar Control)
» DayPilot ASP.NET Calendar
DayPilot Pro (AJAX Monthly Calendar Control)
» DayPilot ASP.NET Monthly Calendar
DayPilot Pro (AJAX Scheduler Control)
» DayPilot ASP.NET Scheduler
DayPilot » Knowledge Base » How to create an event handler in ASP.NET Web Forms

How to create an event handler in ASP.NET Web Forms

Last revision: May 14, 2012

The easiest way to create an event handler is to use Visual Studio Designer.

1. Open the page in Visual Studio

2. Switch to the Design view using a button in the lower-left corner:

calendar event handler design view

3. Select the control (e.g. DayPilotCalendar) by clicking on it.

4. In the Properties toolbox, switch to the Events view using the lightning icon:

calendar event handler properties

5. To create a new event handler, double-click the space next to the event name:

calendar event handler create

6. A new method that handles the event will be created:

calendar event handler code

See also

Related

How to show an event calendar in ASP.NET MVC 3 Razor
How to open a new event dialog using TimeRangeSelected event (modal.js)
How to show the selected date using a Label control
How to use DayPilot Scheduler with LINQ to SQL