FIndcontrol doesn't seem to work inside a baseclass....
- by Pandiya Chendur
I use LinkButton linkBtn = (LinkButton)FindControl(ControlID); inside a method in my baseclass...
This works within a normal aspx page when given,
LinkButton linkBtn = (LinkButton)FindControl("lnkBtn1");
But when it is a contentpage included within a masterpage it doesn't work...
LinkButton linkBtn = (LinkButton)FindControl("ctl00_ContentPlaceHolder1_lnkbtn");
i get the error Object reference not set to an instance of an object.