ASP.NETFind Control by ID


Syntax

  1. control.FindControl("Id Of The Control To Be Found")

Remarks

  • FindControl is not recursive, it only searches through immediate children of the control
  • There is an overload FindControl(String, int) which is not indented for public usage
  • If nothing is found, FindControl returns null, so this is often a good idea to verify result for being not null