Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Building Controls > Custom Control - Collection Property

Thread Tools

Custom Control - Collection Property

Posts: n/a
Hey gang. I am taking the task of trying to learn how to write custom web

I have started with inheriting from the VS 2005 default which is UserControl.

I am implementing collection and just basic properties in my control and
they are compiling and running so far but when I try and view the page in the
designer I get such things like:

Error Creating Control
Type 'System.Web.UI.UserControl' does not have a public property named Columns

But when I run the page everything is okay. Could someone please describe to
me why this is occuring?

Also most examples I see using Collections uses Control or WebControl. Is
there any disadvantage to using UserControl and does this cripple my use of
properties in any way? I like the design-time support for the UserControl.

Any help would be greatly appreciated.

Thanks and take care.
Reply With Quote

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
Collection problems (create Collection object, add data to collection, bind collection to datagrid) Řyvind Isaksen ASP .Net 1 05-18-2007 09:24 AM
Problem with collection property in custom server control Rene Aichinger ASP .Net 0 12-07-2005 06:01 PM
ASP.NET Custom control with collection property -=Chris=- ASP .Net 2 05-23-2004 06:46 AM
where to define my custom control schema & collection property... (2 questions) Lloyd Dupont ASP .Net 0 07-27-2003 12:07 PM
Custom Control nad Collection property Brian Bugge ASP .Net Building Controls 0 07-02-2003 02:09 PM