Hello, Im tring to find a control inside a master page contentplaceholder with the following:
Dim TargetImage As HyperLink
TargetImage = FindControl("Content2").FindControl("Image" & i)
I get object reference not set to an instance of an object. I also tried:
TargetImage = Me.Master.FindControl("Content2").FindControl("Image" & i)
The controls are not in the master page but in a page that uses the master page. It did work before adding utalizing master pages also. How can i fix this?