NullReferenceException when user control references usercontrol in parent user control

Posted by Tony_Henrich on Stack Overflow See other posts from Stack Overflow or by Tony_Henrich
Published on 2010-05-25T16:56:12Z Indexed on 2010/05/25 17:01 UTC
Read the original article Hit count: 470

Filed under:

I have a user control (uc1) which inherits from uc2. uc2 has a user control (uc3) declared in the markup. I am trying to access uc3 from uc1 but I get NullReferenceException. I thought due to inheritance uc3 would instantiate but looks like I am missing a step.

page_load event of uc2 doesn't fire either.

© Stack Overflow or respective owner

Related posts about ASP.NET