954,595 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Help Me: Find Panel from Parent Page of user control

Hi Friends,

I have a user control. what I wanted to do is to find the panel from its parent page.

My code is below Dim pnl As Panel = Me.Parent.FindControl("Panel1")

But it returns Nothing. Help me asap.

murugavel84
Junior Poster in Training
53 posts since Apr 2010
Reputation Points: 10
Solved Threads: 8
 

Hi, i do not too much about vb, but for the most part c# and vb share the same concepts, so maybe what you need is parsing the find control to a panel like this.

Dim pnl As Panel = (Panel)Me.Parent.FindControl("Panel1")
jbisono
Posting Pro in Training
442 posts since May 2009
Reputation Points: 71
Solved Threads: 59
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: