DateTimeControl ondatechanged event not firing
1 answer
Place the following lines of code in the event Page_Load
foreach (Control c in dtControl.Controls)
{
if (c is DropDownList)
{
((DropDownList)c).AutoPostBack = true;
((DropDownList)c).SelectedIndexChanged += SomeEvent;
}
}
Link: http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.webcontrols.datetimecontrol_events.aspx
+2
source to share