In an asp.net, how to get a reference of a custom webcontrol from a usercontrol?

Posted by AJ on Stack Overflow See other posts from Stack Overflow or by AJ
Published on 2010-03-23T20:40:57Z Indexed on 2010/03/23 20:43 UTC
Read the original article Hit count: 295

Filed under:
|
|

Hi

I have a page which holds a custom webcontrol and a usercontrol. I need to reference of webcontrol in usercontrol class. So, I make the declaration of webcontrol as public in page class. But, when I do “this.Page.”, I don’t see the webcontrol listed in list provided by intellisense. Most probably, I am missing something.

In an asp.net page, how to get a reference of a custom webcontrol from a usercontrol?

Please advise. Thanks Pankaj

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about webpart