Error Creating Control: Parser Error DocHeader does not have a property named 'cc3:MyItems'

N

~~~ .NET Ed ~~~

I am having problems getting this webcontrol working properly. Everything
else works fine except having items. So here is the low-down on the control:

1. The control class is declared as shown below (only relevant code
presented). Notice that it contains a collection of items (not presented
here for the sake of clarity):

[DesignerAttribute(typeof(DocHeaderDesigner), typeof(IDesigner)),
DefaultProperty("Items"),
ToolboxData("<{0}:DocHeader runat=server></{0}:DocHeader>")]
public class DocHeader : System.Web.UI.WebControls.WebControl,
INamingContainer
{
// This member holds all the items associated with this control
private DocHeaderItemCollection items = new DocHeaderItemCollection();

// And this is the accessor property
public DocHeaderItemCollection Items
{
get { return this. items; }
set { this.items = value; }
}

}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,999
Messages
2,570,246
Members
46,842
Latest member
MableIwk73

Latest Threads

Top