Hi,
I have templated custom server control, which works ok, but the visual studio designer
cannot properly "see" the child controls within the template, for code-behind work and the such.
From your description, it seems that you are unable to see the child controls you create in design form, right?
Generally, the cause of this kind of problem is that you haven’t add the ControlDesigner declaration in your custom control’s class level. See the following code snippet:
namespace ASP.NET
{
[Designer("System.Web.UI.Design.ControlDesigner, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
public class CustomControl : WebControl
{
Table t;
….
Thanks.
Michael Jin.
Microsoft Online Community Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help.