Extending Calendar to add Day Click Event

N

Nilesh

Hello,

I am trying to extend the Calendar Control to add a event for a Day
Click.
Currently we have a "SelectionChanged" event.
I would like an event to be fired on "DayClick"

I extended the calendar control and added the following
//
public event EventHandler DayClick;

protected void OnDayClick(object sender, System.EventArgs e)
{
if(DayClick != null)
DayClick(sender, e);
}
//

I added the extended calendar control to a user control and added the
following code there
//
this.ncalVis.DayClick += new
System.EventHandler(this.ncalVis_DayClick);

protected void ncalVis_DayClick(object sender, System.EventArgs e)
{
//Event Fired
}
//

Surely I dont understand the event stuff good enough.
How do I join the clicking on a day link in a calendar to the event
that I have declared???

Thanks for the help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,175
Latest member
Vinay Kumar_ Nevatia
Top