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

Discussion in 'ASP .Net Building Controls' started by ~~~ .NET Ed ~~~, Nov 10, 2004.

  1. 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; }
    }

    }
    ~~~ .NET Ed ~~~, Nov 10, 2004
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. ~~~ .NET Ed ~~~
    Replies:
    0
    Views:
    928
    ~~~ .NET Ed ~~~
    Nov 10, 2004
  2. Anabela Silva
    Replies:
    0
    Views:
    1,195
    Anabela Silva
    Nov 1, 2006
  3. Joel Hedlund
    Replies:
    2
    Views:
    491
    Joel Hedlund
    Nov 11, 2006
  4. Bob
    Replies:
    1
    Views:
    1,256
    Mark Fitzpatrick
    Feb 8, 2008
  5. ~~~ .NET Ed ~~~
    Replies:
    1
    Views:
    213
    ~~~ .NET Ed ~~~
    Nov 13, 2004
Loading...

Share This Page