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.
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.
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")
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.