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.
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