November Happy Hour will be moved to Thursday December 5th.

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
May 07, 2007 12:57
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
May 07, 2007 15:31
Vote:
 
This works perfectly! Thank you so much.
#15275
May 10, 2007 11:27
* 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.