Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Building Controls > Error Creating Control: Parser Error DocHeader does not have a property named 'cc3:MyItems'

Reply
Thread Tools

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

 
 
~~~ .NET Ed ~~~
Guest
Posts: n/a
 
      11-10-2004
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}ocHeader runat=server></{0}ocHeader>")]
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; }
}

}



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error parsing attribute 'test': Type 'System.Web.UI.Page' does not have a public property named 'test'. Bob ASP .Net 1 02-08-2008 06:25 AM
import parser does not import parser.py in same dir on win Joel Hedlund Python 2 11-11-2006 03:46 PM
Could not find a property named '... ' on the type specified by the DataObjectTypeName property in ObjectDataSource '...' Anabela Silva ASP .Net 0 11-01-2006 07:08 PM
Parser Error: Type XYZ does not have a property named 'cc3:MyItems' (complete posting) ASP.NET Web Control Error ~~~ .NET Ed ~~~ ASP .Net Building Controls 1 11-13-2004 12:46 PM
Error Creating Control: Parser Error DocHeader does not have a property named 'cc3:MyItems' ~~~ .NET Ed ~~~ ASP .Net 0 11-10-2004 05:24 PM



Advertisments