Mine has the same signature but actually works. :P
public static T FindControl(ControlCollection controls, string controlId) where T : class
{
T found = default(T);
int i = -1;
while ((controls != null) && (found == null) && (++i < found =" ((controls[i]" id ="="">(controls[i].Controls, controlId);
}
return found;
}
1 comment:
This on is even better; Selector for WebControls
Post a Comment