search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Error while executing Event click functions

Asked by Vanditha
12 years ago.

Hi ,
I am unable to execute EventClick & free time click events. I recieve the below error message

"No overload for 'DayPilotCalendar1_EventClick' matches delegate 'DayPilot.Web.Ui.EventClickDelegate'"

My Source code for .aspx page is
<form id="form1" runat="server">
<div>
<DayPilot:DayPilotCalendar ID="DayPilotCalendar1" DataStartField="EVENTDATE" OnEventClick="DayPilotCalendar1_EventClick" OnFreeTimeClick="DayPilotCalendar1_FreeTimeClick" ShowHours= "true" DataValueField="EVENTID" DataTextField="EVENTNAME" DataEndField="EVENTEND" runat="server" />
<asp:Label ID="Label1" runat="server"></asp:Label>
</div>
</form>

Code-behind :

public void DayPilotCalendar1_FreeTimeClick(System.DateTime start)
{
Label1.Text = "Selected time: " + start.ToString("s");
Response.Write(Label1.Text);
}

public void DayPilotCalendar1_EventClick(string pk)
{
Label1.Text = "Selected event: " + pk;
}

Kindly advice how to resolve it. Thanks

Comment posted by Vanditha
12 years ago.

Hello,
Can somebody help me to resolve it . Its quite urgent ,I need to test DayPilot Lite before purchasing the pro edition .

Answer posted by Vanditha
12 years ago.

I had resolved this issue. Thanks

Comment posted by Anonymous
11 years ago.

Gee. Thanks for letting us know how.

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.