private object[] GetControls(IContainer container)
{
ComponentCollection components = container.Components;
ArrayList controls = new ArrayList();
foreach (IComponent component in components)
{
if (component is System.Web.UI.Control)
{
Control c = (Control)component;
if (c.ID.IsNotEmpty() && this.CheckType(c))
{
controls.Add(string.Copy(c.ID));
}
}
}
controls.Sort(Comparer.Default);
return controls.ToArray();
}