Also make sure you are Implementing INamingContainer I did this it
solved some problems for me. Also make sure EnsureChildControls is
everywhere in all subs/functions ... except for CreateChildControls
like you already had it.
You're code snippet did show where you were Overriding the base Render
code. Make sure to do that and make sure to put EnsureChildControls
before calling base.Render(output).
This is what I've done and I have 2 string property's and enum property
that all work great.
You got any thoughts on my problem. I'm also trying to add a property
of string array type. In the IDE I can fill in the property using the
property window. When I run it though I lose the property it behaves
just like what you are seeing the property is null. I'm also trying to
have a property that points to another control but I'm losing that at
run-time too. My guess is that a string array and a control are
non-native data types so there might be a trick to maintain the
settings between design time and run time.
Hope it works for you and hope you might a suggestion for me.... Chad
[quoted text, click to view] Jon wrote:
> Nope Chad, same error afraid.
>
> Jon
>
> "Chad" wrote:
>
> > Try putting EnsureChildControls(); as the 1st line in all you're
> > property setter code.
> >
> > IE:
> > set
> > {
> > EnsureChildControls();
> > connectionString = value;
> > }
> >
> >