Ask a Question related to ASP.NET, Design and Development.
-
Synced #1
Custom Control - Collection Property
Hey gang. I am taking the task of trying to learn how to write custom web
controls.
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.
Synced Guest
-
Collection Property in web custom control
Hi all, I'm building a custom control. I would like that on the control you can set some 'rights' For that I have an enum: public enum... -
Nested Collection property in a custom control
I have the extactly the same problem.. I am creating a control where a collection property is exposed which has a nested collection object. It... -
Collection Property of Another Custom Server Control
Hi, I read more and figured out how to build what I needed: <cc> <item></item> <item></item> </cc> when <item> is an editable control in... -
Help with using a custom collection as a property for a TextBox derrived control.
Hi I am creating a new TextBox control but I am having problems when I am trying to add my own collection to the control and persisting the... -
Custom Control nad Collection property
I have a collection-property on my control. I Add the items through a collection editor, and items tags appears. <bugge:Control>... -
Gaurav Vaish \(MasterGaurav\) #2
Re: Custom Control - Collection Property
> Also most examples I see using Collections uses Control or WebControl. Is
Prefer to work with WebControl.> 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.
UserControl, I say, are quick and (may not be) dirty solution to a complex
control.
UserControl needs to be compiled by the VS.Net (using ASP.Net) for
design-time support. At times, it may go out-of-sync.
Also, one needs to always have the ascx alongwith the compiled binary...
that's why, prefer WebControl.
--
Happy Hacking,
Gaurav Vaish | [url]www.mastergaurav.com[/url]
[url]www.edujini-labs.com[/url]
[url]http://eduzine.edujinionline.com[/url]
-----------------------------------------
Gaurav Vaish \(MasterGaurav\) Guest



Reply With Quote

