Ask a Question related to ASP.NET Building Controls, Design and Development.
-
John #1
Multiple Collection Properties in a Custom Control
I am attempting to create control with 2 collection properties
that are persisted with mode PersistenceMode.InnerProperty.
When I create the control I get an error message '' could not be set.
I can create and use the custom control if it contains only 1 collection
property (commenting out the other).
Has anyone experienced this? Is there a workaround?
Thanks,
John
John 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... -
server control collection with several types of properties
Is it possible to implement a server control that will look like this: <just:control> <columns> <columnTypeA id=1></columnTypeA> <columnTypeA... -
Making Custom Control Properties Visible in Visual Studio's Properties Palette
I am learning how to use the System.ComponentModel class in VB.NET so that I can add my ASP.NET controls to Visual Studio .NET 2003. I have managed... -
Server Control Collection Properties Solutions,Problems MVP Advice Requested
I have solved most of my Server Control Collection property issues. I wrote an HTML page that describes all of the problems that I have encountered... -
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>... -
Sean Winstead #2
Re: Multiple Collection Properties in a Custom Control
That error can occur if the collection property has a getter and a>Has anyone experienced this? Is there a workaround?
setter. For example, this is the wrong way:
[PersistenceMode(PersistenceMode.InnerProperty),
DesignerSerializationVisibility(DesignerSerializat ionVisibility.Content)]
public MyCollectionType MyCollection {
get { return _myCollection; }
set { _myCollection = value; }
}
The right way:
[PersistenceMode(PersistenceMode.InnerProperty),
DesignerSerializationVisibility(DesignerSerializat ionVisibility.Content)]
public MyCollectionType MyCollection {
get { return _myCollection; }
}
--
Sean Winstead
[url]http://www.componentscience.net[/url]
Sean Winstead Guest



Reply With Quote

