Recursive+Findcontrol

code format="vbnet" Public Shared Function FindControlRecursive(buval controlid as string, byval controls as controlcollection) as control

for each control as control in controls if control.id=controlid return control if control.hascontrols then Dim nestedControl as control=findcontrolrecursive(controlid,control.controls) if nestedcontrol isnot nothing then return nestedcontrol endif return nothing end function

code