X
xke
I have a base class which overrides CreateChildControls / Render.
Inside CreateChildControls, based on a public property ShowLinks in
this class, I can include/display a usercontrol (kind of set of links
like a menu)
A form P inherits this base class. I set the property me.ShowLinks =
true on the load event of P.
P contains another usercontrol (C) which has a button on it.
When I first call P, everything renders fine. First it goes on P_Load,
C_Load, BaseClass:CreateChildControls and Render. Depends on ShowLinks
property, the links are properly displayed on the page.
The problem is when I press the button from the C control, it changes
the order, it first go to CreateChildControls, it doesn't have
ShowLinks set at this moment, it goes afterwards to Load and the Links
do not display properly.
How can I fix this issue?
Thanks
Inside CreateChildControls, based on a public property ShowLinks in
this class, I can include/display a usercontrol (kind of set of links
like a menu)
A form P inherits this base class. I set the property me.ShowLinks =
true on the load event of P.
P contains another usercontrol (C) which has a button on it.
When I first call P, everything renders fine. First it goes on P_Load,
C_Load, BaseClass:CreateChildControls and Render. Depends on ShowLinks
property, the links are properly displayed on the page.
The problem is when I press the button from the C control, it changes
the order, it first go to CreateChildControls, it doesn't have
ShowLinks set at this moment, it goes afterwards to Load and the Links
do not display properly.
How can I fix this issue?
Thanks