trival:
// find all controls on page that start with "Tbl"
Control[] list = ControlWalker(this, delegate(Control ctl)
{
return ctl.ID != null && ctl.ID.StartsWith("Tbl");
});
......
public delegate bool ControlWalkerMatcher (Control ctl);
public Control[] ControlWalker(Control ctl, ControlWalkerMatcher matcher)
{
ArrayList list = new ArrayList();
if (matcher(ctl)) list.Add(ctl);
for (int i=0; i < ctl.Controls.Count; ++i)
{
Control[] childList = ControlWalker(ctl.Controls[i],matcher);
if (childList.Length > 0) list.AddRange(childList);
}
return (Control[]) list.ToArray(typeof(Control));
}
-- bruce (sqlwork.com)
> hey all,
> i have to 2 tables (Tbl1 and Tbl2) that's contained in a fieldset, which is
[quoted text clipped - 6 lines]
> thanks,
> rodchar
rodchar - 05 Dec 2007 18:33 GMT
thanks bruce for the help.
rod.
> trival:
>
[quoted text clipped - 32 lines]
> > thanks,
> > rodchar