M
Mike Dando
Hi,
I have created a composite control which has some drop down lists, buttons
and a list box.
The control renders itself dynamically via CreateChildControls() according
to a property set by the web form - page load.
This is fine the first time the control is rendered. When any of the buttons
on my control are pressed causing a postback,
the CreateChildControls() is called before the web form page load. Hence the
vital property is not set and the control
fails to render and effectively disappears.
Is this correct that page-load is called after my control has created it's
child controls? If so how do I get around this problem? If not, what am I
doing wrong?
I can't use ViewState for the property as it is a 3rd party non-serializable
object.
Many thanks.
Mike.
VS.NET 2003 - C#
I have created a composite control which has some drop down lists, buttons
and a list box.
The control renders itself dynamically via CreateChildControls() according
to a property set by the web form - page load.
This is fine the first time the control is rendered. When any of the buttons
on my control are pressed causing a postback,
the CreateChildControls() is called before the web form page load. Hence the
vital property is not set and the control
fails to render and effectively disappears.
Is this correct that page-load is called after my control has created it's
child controls? If so how do I get around this problem? If not, what am I
doing wrong?
I can't use ViewState for the property as it is a 3rd party non-serializable
object.
Many thanks.
Mike.
VS.NET 2003 - C#