asked on
protected String GetAllCalControls()
{
StringBuilder countCal = new StringBuilder();
foreach (Control ctrl in Page.Controls)
{
foreach (Control childc in ctrl.Controls)
{
if (childc is Calendar)
{
countCal.Append(childc.ID+",");
}
}
}
countCal.Remove(countCal.Length, -1);
return countCal.ToString();
}