DayPilot Knowledge Base

AJAX Calendar/Scheduling Controls
DayPilot Pro (AJAX Calendar Control)
» DayPilot AJAX Calendar
DayPilot Pro (AJAX Monthly Calendar Control)
» DayPilot AJAX Monthly Calendar
DayPilot Pro (AJAX Scheduler Control)
» DayPilot AJAX 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.png

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.png

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

calendar-event-handler-create.png

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

calendar-event-handler-code.png

See also

Related

How to show an event calendar in ASP.NET MVC 3 Razor
How to use DayPilot Scheduler with LINQ to SQL
Event Calendar for jQuery (ASP.NET MVC)
How to show a modal dialog in ASP.NET MVC 3 Razor