Click here to Skip to main content
14,668,602 members
Rate this:
Please Sign up or sign in to vote.
See more:
I want to access the panel control from user control(.ascx) so i have used the following code but this type of error raised 'system.web.ui.contol' to 'panel'

Panel panelprint = (Panel)this.Parent.FindControl("pnlforlistbox");

how to rectify this. please give me an idea or solution
Mahesh Bailwal 26-Jun-13 5:24am
Share your Parent .aspx page code?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100