case "Calendar":
ctrl = new Calendar();
((Calendar)ctrl).ID = GetControlId(index, itemDetails);
((Calendar)ctrl).Attributes.Add("class", "chkClass" + parentIndex.ToString());
if (itemDetails.AttachEvent == true)
{
((Calendar)ctrl).SelectedDate += new EventHandler(Item_Selected);
((Calendar)ctrl).AutoPostBack = true;
}
break;
此行发生错误:
((Calendar)ctrl).SelectedDate += new EventHandler(Item_Selected);
任何人都可以帮忙吗?