Click here to Skip to main content
15,041,525 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
HI
Can any one help me why this code is not working

 public delegate void clnMonth_Changed(object sender, System.Web.UI.WebControls.MonthChangedEventHandler e);
protected void Page_Load(object sender, EventArgs e)
    {
      clnDate.WebCalendar.VisibleMonthChanged += new System.Web.UI.WebControls.MonthChangedEventHandler(this.clnMonth_Changed);
      
      }


private void clnMonth_Changed(object sender, System.Web.UI.WebControls.MonthChangedEventHandler e)
   {
   }
Posted
Updated 17-Jan-11 2:11am
v2
Comments
Anupama Roy 17-Jan-11 11:06am
   
Are you trying to invoke some event of a custom user control?

The second argument in the event handler is supposed to be derived from EventArgs.
   
Comments
Espen Harlinn 17-Jan-11 8:32am
   
5+ right
As John says: Change type of second argument of clnMonth_Changed to
MonthChangedEventArgs[^]

Regards
Espen Harlinn
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900