Placing pannel or other controls inside an episerver control (newslist)

Vote:
 
Hello, I am trying to put either a pannel or another control inside the newslist control but the system doesn't seem to recognize any of these. I find that the ascx.designer.cs doesn't register these controls. Does anyone know how to go about this? In the example below, I would like to access the panel to hide or make visible depending on entries in certain properties.
<%-->--%>
" alt="" />
#13028
Mar 25, 2008 18:35
Vote:
 
The reason why your controls does not register in the designer.cs file is because controls inside templates are contained within their own namingcontainers, one way to go about accessing these controls from codebehind would be to use the FindControl method on the appropriate object. In your case though you could just set the Visible property of the panel in the design file like this: Hope this helps
#15274
Mar 25, 2008 18:46
Vote:
 
This works perfectly! Thank you so much.
#15275
Mar 25, 2008 18:46
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.