Double-check that this is really the output of the UserControl class, not WebControl.
This one took me by surprise many times. If you need to use WebControl for styling, you need to let your management implement INamingContainer. (Don’t worry, its marker interface)
So..
public class MyControl : UserControl {}
or
public class MyControl : WebControl, INamingContainer {}
source
share