Archive for October, 2007

Recursive Goodness - II

Monday, October 15th, 2007

Find a control within a control recursively:

protected void Control FindControlRecursive(Control Root, string Id)
{
if (Root.ID == Id)
return Root;
foreach (Control Ctl in Root.Controls)
{
Control FoundCtl = FindControlRecursive(Ctl, Id);
[…]

Programming | No comments

Recursive Goodness - I

Monday, October 15th, 2007

Check to see if all the controls within a specific control are valid:

protected bool checkIsValid(Control c)
{
bool result = true;
foreach (Control child in c.Controls)
{

if (child is BaseValidator && !((IValidator)child).IsValid)
[…]

Programming | No comments

You are currently browsing the Calisto Mind weblog archives for October, 2007.


Recently on Flickr

  • IMG_0514
  • IMG_0506
  • IMG_0505
  • IMG_0503
  • IMG_0497
  • IMG_0495
  • IMG_0494
  • IMG_0493

Switch Theme

Meta